public final class UnmarshallingObjectInputStream extends ObjectInputStream
Unmarshaller
, which may be used by legacy ObjectInputStream
-based
applications that wish to use the marshalling framework.ObjectInputStream.GetField
baseWireHandle, PROTOCOL_VERSION_1, PROTOCOL_VERSION_2, SC_BLOCK_DATA, SC_ENUM, SC_EXTERNALIZABLE, SC_SERIALIZABLE, SC_WRITE_METHOD, STREAM_MAGIC, STREAM_VERSION, SUBCLASS_IMPLEMENTATION_PERMISSION, SUBSTITUTION_PERMISSION, TC_ARRAY, TC_BASE, TC_BLOCKDATA, TC_BLOCKDATALONG, TC_CLASS, TC_CLASSDESC, TC_ENDBLOCKDATA, TC_ENUM, TC_EXCEPTION, TC_LONGSTRING, TC_MAX, TC_NULL, TC_OBJECT, TC_PROXYCLASSDESC, TC_REFERENCE, TC_RESET, TC_STRING
Constructor and Description |
---|
UnmarshallingObjectInputStream(Unmarshaller unmarshaller,
ByteInput byteInput)
Construct a new instance which delegates to the given unmarshaller, reading from the given input.
|
UnmarshallingObjectInputStream(Unmarshaller unmarshaller,
InputStream stream)
Construct a new instance which delegates to the given unmarshaller, reading from the given input.
|
Modifier and Type | Method and Description |
---|---|
int |
available() |
void |
close() |
void |
defaultReadObject()
May not be invoked in this context.
|
protected boolean |
enableResolveObject(boolean enable) |
int |
read() |
int |
read(byte[] b) |
int |
read(byte[] b,
int off,
int len) |
boolean |
readBoolean() |
byte |
readByte() |
char |
readChar() |
protected ObjectStreamClass |
readClassDescriptor() |
double |
readDouble() |
ObjectInputStream.GetField |
readFields()
May not be invoked in this context.
|
float |
readFloat() |
void |
readFully(byte[] b) |
void |
readFully(byte[] b,
int off,
int len) |
int |
readInt() |
String |
readLine()
Deprecated.
|
long |
readLong() |
protected Object |
readObjectOverride() |
Object |
readObjectUnshared() |
short |
readShort() |
protected void |
readStreamHeader() |
Object |
readUnshared() |
int |
readUnsignedByte() |
int |
readUnsignedShort() |
String |
readUTF() |
void |
registerValidation(ObjectInputValidation obj,
int prio)
May not be invoked in this context.
|
protected Class<?> |
resolveClass(ObjectStreamClass desc) |
protected Object |
resolveObject(Object obj) |
protected Class<?> |
resolveProxyClass(String[] interfaces) |
long |
skip(long n) |
int |
skipBytes(int n) |
readObject
mark, markSupported, reset
public UnmarshallingObjectInputStream(Unmarshaller unmarshaller, InputStream stream) throws IOException, SecurityException
unmarshaller
- the delegate unmarshallerstream
- the input stream to read fromIOException
- if an I/O error occursSecurityException
- if the caller does not have permission to construct an instance of this classpublic UnmarshallingObjectInputStream(Unmarshaller unmarshaller, ByteInput byteInput) throws IOException, SecurityException
unmarshaller
- the delegate unmarshallerbyteInput
- the input stream to read fromIOException
- if an I/O error occursSecurityException
- if the caller does not have permission to construct an instance of this classpublic Object readUnshared() throws IOException, ClassNotFoundException
readUnshared
in class ObjectInputStream
IOException
ClassNotFoundException
protected Object readObjectOverride() throws ClassNotFoundException, IOException
readObjectOverride
in class ObjectInputStream
ClassNotFoundException
IOException
public int read() throws IOException
read
in interface ObjectInput
read
in class ObjectInputStream
IOException
public int read(byte[] b) throws IOException
read
in interface ObjectInput
read
in class InputStream
IOException
public int read(byte[] b, int off, int len) throws IOException
read
in interface ObjectInput
read
in class ObjectInputStream
IOException
public long skip(long n) throws IOException
skip
in interface ObjectInput
skip
in class InputStream
IOException
public int available() throws IOException
available
in interface ObjectInput
available
in class ObjectInputStream
IOException
public void close() throws IOException, IllegalStateException
close
in interface Closeable
close
in interface ObjectInput
close
in interface AutoCloseable
close
in class ObjectInputStream
IOException
IllegalStateException
public void readFully(byte[] b) throws IOException
readFully
in interface DataInput
readFully
in class ObjectInputStream
IOException
public void readFully(byte[] b, int off, int len) throws IOException
readFully
in interface DataInput
readFully
in class ObjectInputStream
IOException
public int skipBytes(int n) throws IOException
skipBytes
in interface DataInput
skipBytes
in class ObjectInputStream
IOException
public boolean readBoolean() throws IOException
readBoolean
in interface DataInput
readBoolean
in class ObjectInputStream
IOException
public byte readByte() throws IOException
readByte
in interface DataInput
readByte
in class ObjectInputStream
IOException
public int readUnsignedByte() throws IOException
readUnsignedByte
in interface DataInput
readUnsignedByte
in class ObjectInputStream
IOException
public short readShort() throws IOException
readShort
in interface DataInput
readShort
in class ObjectInputStream
IOException
public int readUnsignedShort() throws IOException
readUnsignedShort
in interface DataInput
readUnsignedShort
in class ObjectInputStream
IOException
public char readChar() throws IOException
readChar
in interface DataInput
readChar
in class ObjectInputStream
IOException
public int readInt() throws IOException
readInt
in interface DataInput
readInt
in class ObjectInputStream
IOException
public long readLong() throws IOException
readLong
in interface DataInput
readLong
in class ObjectInputStream
IOException
public float readFloat() throws IOException
readFloat
in interface DataInput
readFloat
in class ObjectInputStream
IOException
public double readDouble() throws IOException
readDouble
in interface DataInput
readDouble
in class ObjectInputStream
IOException
@Deprecated public String readLine() throws IOException
readLine
in interface DataInput
readLine
in class ObjectInputStream
IOException
public String readUTF() throws IOException
readUTF
in interface DataInput
readUTF
in class ObjectInputStream
IOException
public Object readObjectUnshared() throws ClassNotFoundException, IOException
ClassNotFoundException
IOException
protected final Class<?> resolveClass(ObjectStreamClass desc) throws IllegalStateException
resolveClass
in class ObjectInputStream
IllegalStateException
protected final Class<?> resolveProxyClass(String[] interfaces) throws IllegalStateException
resolveProxyClass
in class ObjectInputStream
IllegalStateException
protected final Object resolveObject(Object obj) throws IllegalStateException
resolveObject
in class ObjectInputStream
IllegalStateException
protected final boolean enableResolveObject(boolean enable) throws IllegalStateException
enableResolveObject
in class ObjectInputStream
IllegalStateException
protected final void readStreamHeader() throws IllegalStateException
readStreamHeader
in class ObjectInputStream
IllegalStateException
protected final ObjectStreamClass readClassDescriptor() throws IllegalStateException
readClassDescriptor
in class ObjectInputStream
IllegalStateException
public void defaultReadObject() throws IllegalStateException
defaultReadObject
in class ObjectInputStream
IllegalStateException
- alwayspublic ObjectInputStream.GetField readFields() throws IllegalStateException
readFields
in class ObjectInputStream
IllegalStateException
- alwayspublic void registerValidation(ObjectInputValidation obj, int prio) throws IllegalStateException
registerValidation
in class ObjectInputStream
obj
- ignoredprio
- ignoredIllegalStateException
- alwaysCopyright © 2017 JBoss by Red Hat. All rights reserved.