public final class UnmarshallingObjectInputStream
extends java.io.ObjectInputStream
Unmarshaller
, which may be used by legacy ObjectInputStream
-based
applications that wish to use the marshalling framework.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,
java.io.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 java.io.ObjectStreamClass |
readClassDescriptor() |
double |
readDouble() |
java.io.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() |
java.lang.String |
readLine()
Deprecated.
|
long |
readLong() |
protected java.lang.Object |
readObjectOverride() |
java.lang.Object |
readObjectUnshared() |
short |
readShort() |
protected void |
readStreamHeader() |
java.lang.Object |
readUnshared() |
int |
readUnsignedByte() |
int |
readUnsignedShort() |
java.lang.String |
readUTF() |
void |
registerValidation(java.io.ObjectInputValidation obj,
int prio)
May not be invoked in this context.
|
protected java.lang.Class<?> |
resolveClass(java.io.ObjectStreamClass desc) |
protected java.lang.Object |
resolveObject(java.lang.Object obj) |
protected java.lang.Class<?> |
resolveProxyClass(java.lang.String[] interfaces) |
long |
skip(long n) |
int |
skipBytes(int n) |
public UnmarshallingObjectInputStream(Unmarshaller unmarshaller, java.io.InputStream stream) throws java.io.IOException, java.lang.SecurityException
unmarshaller
- the delegate unmarshallerstream
- the input stream to read fromjava.io.IOException
- if an I/O error occursjava.lang.SecurityException
- if the caller does not have permission to construct an instance of this classpublic UnmarshallingObjectInputStream(Unmarshaller unmarshaller, ByteInput byteInput) throws java.io.IOException, java.lang.SecurityException
unmarshaller
- the delegate unmarshallerbyteInput
- the input stream to read fromjava.io.IOException
- if an I/O error occursjava.lang.SecurityException
- if the caller does not have permission to construct an instance of this classpublic java.lang.Object readUnshared() throws java.io.IOException, java.lang.ClassNotFoundException
readUnshared
in class java.io.ObjectInputStream
java.io.IOException
java.lang.ClassNotFoundException
protected java.lang.Object readObjectOverride() throws java.lang.ClassNotFoundException, java.io.IOException
readObjectOverride
in class java.io.ObjectInputStream
java.lang.ClassNotFoundException
java.io.IOException
public int read() throws java.io.IOException
read
in interface java.io.ObjectInput
read
in class java.io.ObjectInputStream
java.io.IOException
public int read(byte[] b) throws java.io.IOException
read
in interface java.io.ObjectInput
read
in class java.io.InputStream
java.io.IOException
public int read(byte[] b, int off, int len) throws java.io.IOException
read
in interface java.io.ObjectInput
read
in class java.io.ObjectInputStream
java.io.IOException
public long skip(long n) throws java.io.IOException
skip
in interface java.io.ObjectInput
skip
in class java.io.InputStream
java.io.IOException
public int available() throws java.io.IOException
available
in interface java.io.ObjectInput
available
in class java.io.ObjectInputStream
java.io.IOException
public void close() throws java.io.IOException, java.lang.IllegalStateException
close
in interface java.io.Closeable
close
in interface java.io.ObjectInput
close
in interface java.lang.AutoCloseable
close
in class java.io.ObjectInputStream
java.io.IOException
java.lang.IllegalStateException
public void readFully(byte[] b) throws java.io.IOException
readFully
in interface java.io.DataInput
readFully
in class java.io.ObjectInputStream
java.io.IOException
public void readFully(byte[] b, int off, int len) throws java.io.IOException
readFully
in interface java.io.DataInput
readFully
in class java.io.ObjectInputStream
java.io.IOException
public int skipBytes(int n) throws java.io.IOException
skipBytes
in interface java.io.DataInput
skipBytes
in class java.io.ObjectInputStream
java.io.IOException
public boolean readBoolean() throws java.io.IOException
readBoolean
in interface java.io.DataInput
readBoolean
in class java.io.ObjectInputStream
java.io.IOException
public byte readByte() throws java.io.IOException
readByte
in interface java.io.DataInput
readByte
in class java.io.ObjectInputStream
java.io.IOException
public int readUnsignedByte() throws java.io.IOException
readUnsignedByte
in interface java.io.DataInput
readUnsignedByte
in class java.io.ObjectInputStream
java.io.IOException
public short readShort() throws java.io.IOException
readShort
in interface java.io.DataInput
readShort
in class java.io.ObjectInputStream
java.io.IOException
public int readUnsignedShort() throws java.io.IOException
readUnsignedShort
in interface java.io.DataInput
readUnsignedShort
in class java.io.ObjectInputStream
java.io.IOException
public char readChar() throws java.io.IOException
readChar
in interface java.io.DataInput
readChar
in class java.io.ObjectInputStream
java.io.IOException
public int readInt() throws java.io.IOException
readInt
in interface java.io.DataInput
readInt
in class java.io.ObjectInputStream
java.io.IOException
public long readLong() throws java.io.IOException
readLong
in interface java.io.DataInput
readLong
in class java.io.ObjectInputStream
java.io.IOException
public float readFloat() throws java.io.IOException
readFloat
in interface java.io.DataInput
readFloat
in class java.io.ObjectInputStream
java.io.IOException
public double readDouble() throws java.io.IOException
readDouble
in interface java.io.DataInput
readDouble
in class java.io.ObjectInputStream
java.io.IOException
@Deprecated public java.lang.String readLine() throws java.io.IOException
readLine
in interface java.io.DataInput
readLine
in class java.io.ObjectInputStream
java.io.IOException
public java.lang.String readUTF() throws java.io.IOException
readUTF
in interface java.io.DataInput
readUTF
in class java.io.ObjectInputStream
java.io.IOException
public java.lang.Object readObjectUnshared() throws java.lang.ClassNotFoundException, java.io.IOException
java.lang.ClassNotFoundException
java.io.IOException
protected final java.lang.Class<?> resolveClass(java.io.ObjectStreamClass desc) throws java.lang.IllegalStateException
resolveClass
in class java.io.ObjectInputStream
java.lang.IllegalStateException
protected final java.lang.Class<?> resolveProxyClass(java.lang.String[] interfaces) throws java.lang.IllegalStateException
resolveProxyClass
in class java.io.ObjectInputStream
java.lang.IllegalStateException
protected final java.lang.Object resolveObject(java.lang.Object obj) throws java.lang.IllegalStateException
resolveObject
in class java.io.ObjectInputStream
java.lang.IllegalStateException
protected final boolean enableResolveObject(boolean enable) throws java.lang.IllegalStateException
enableResolveObject
in class java.io.ObjectInputStream
java.lang.IllegalStateException
protected final void readStreamHeader() throws java.lang.IllegalStateException
readStreamHeader
in class java.io.ObjectInputStream
java.lang.IllegalStateException
protected final java.io.ObjectStreamClass readClassDescriptor() throws java.lang.IllegalStateException
readClassDescriptor
in class java.io.ObjectInputStream
java.lang.IllegalStateException
public void defaultReadObject() throws java.lang.IllegalStateException
defaultReadObject
in class java.io.ObjectInputStream
java.lang.IllegalStateException
- alwayspublic java.io.ObjectInputStream.GetField readFields() throws java.lang.IllegalStateException
readFields
in class java.io.ObjectInputStream
java.lang.IllegalStateException
- alwayspublic void registerValidation(java.io.ObjectInputValidation obj, int prio) throws java.lang.IllegalStateException
registerValidation
in class java.io.ObjectInputStream
obj
- ignoredprio
- ignoredjava.lang.IllegalStateException
- alwaysCopyright © 2011 JBoss, a division of Red Hat, Inc.