public final class UnmarshallingObjectInputStream extends ObjectInputStream
Unmarshaller, which may be used by legacy ObjectInputStream-based
applications that wish to use the marshalling framework.ObjectInputStream.GetFieldbaseWireHandle, 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) |
readObjectmark, markSupported, resetpublic 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 ObjectInputStreamIOExceptionClassNotFoundExceptionprotected Object readObjectOverride() throws ClassNotFoundException, IOException
readObjectOverride in class ObjectInputStreamClassNotFoundExceptionIOExceptionpublic int read()
throws IOException
read in interface ObjectInputread in class ObjectInputStreamIOExceptionpublic int read(byte[] b)
throws IOException
read in interface ObjectInputread in class InputStreamIOExceptionpublic int read(byte[] b,
int off,
int len)
throws IOException
read in interface ObjectInputread in class ObjectInputStreamIOExceptionpublic long skip(long n)
throws IOException
skip in interface ObjectInputskip in class InputStreamIOExceptionpublic int available()
throws IOException
available in interface ObjectInputavailable in class ObjectInputStreamIOExceptionpublic void close()
throws IOException,
IllegalStateException
close in interface Closeableclose in interface ObjectInputclose in interface AutoCloseableclose in class ObjectInputStreamIOExceptionIllegalStateExceptionpublic void readFully(byte[] b)
throws IOException
readFully in interface DataInputreadFully in class ObjectInputStreamIOExceptionpublic void readFully(byte[] b,
int off,
int len)
throws IOException
readFully in interface DataInputreadFully in class ObjectInputStreamIOExceptionpublic int skipBytes(int n)
throws IOException
skipBytes in interface DataInputskipBytes in class ObjectInputStreamIOExceptionpublic boolean readBoolean()
throws IOException
readBoolean in interface DataInputreadBoolean in class ObjectInputStreamIOExceptionpublic byte readByte()
throws IOException
readByte in interface DataInputreadByte in class ObjectInputStreamIOExceptionpublic int readUnsignedByte()
throws IOException
readUnsignedByte in interface DataInputreadUnsignedByte in class ObjectInputStreamIOExceptionpublic short readShort()
throws IOException
readShort in interface DataInputreadShort in class ObjectInputStreamIOExceptionpublic int readUnsignedShort()
throws IOException
readUnsignedShort in interface DataInputreadUnsignedShort in class ObjectInputStreamIOExceptionpublic char readChar()
throws IOException
readChar in interface DataInputreadChar in class ObjectInputStreamIOExceptionpublic int readInt()
throws IOException
readInt in interface DataInputreadInt in class ObjectInputStreamIOExceptionpublic long readLong()
throws IOException
readLong in interface DataInputreadLong in class ObjectInputStreamIOExceptionpublic float readFloat()
throws IOException
readFloat in interface DataInputreadFloat in class ObjectInputStreamIOExceptionpublic double readDouble()
throws IOException
readDouble in interface DataInputreadDouble in class ObjectInputStreamIOException@Deprecated public String readLine() throws IOException
readLine in interface DataInputreadLine in class ObjectInputStreamIOExceptionpublic String readUTF() throws IOException
readUTF in interface DataInputreadUTF in class ObjectInputStreamIOExceptionpublic Object readObjectUnshared() throws ClassNotFoundException, IOException
ClassNotFoundExceptionIOExceptionprotected final Class<?> resolveClass(ObjectStreamClass desc) throws IllegalStateException
resolveClass in class ObjectInputStreamIllegalStateExceptionprotected final Class<?> resolveProxyClass(String[] interfaces) throws IllegalStateException
resolveProxyClass in class ObjectInputStreamIllegalStateExceptionprotected final Object resolveObject(Object obj) throws IllegalStateException
resolveObject in class ObjectInputStreamIllegalStateExceptionprotected final boolean enableResolveObject(boolean enable)
throws IllegalStateException
enableResolveObject in class ObjectInputStreamIllegalStateExceptionprotected final void readStreamHeader()
throws IllegalStateException
readStreamHeader in class ObjectInputStreamIllegalStateExceptionprotected final ObjectStreamClass readClassDescriptor() throws IllegalStateException
readClassDescriptor in class ObjectInputStreamIllegalStateExceptionpublic void defaultReadObject()
throws IllegalStateException
defaultReadObject in class ObjectInputStreamIllegalStateException - alwayspublic ObjectInputStream.GetField readFields() throws IllegalStateException
readFields in class ObjectInputStreamIllegalStateException - alwayspublic void registerValidation(ObjectInputValidation obj, int prio) throws IllegalStateException
registerValidation in class ObjectInputStreamobj - ignoredprio - ignoredIllegalStateException - alwaysCopyright © 2012 JBoss by Red Hat. All Rights Reserved.