|
JBoss Marshalling 1.2.1.GA | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.io.InputStream
java.io.ObjectInputStream
org.jboss.marshalling.UnmarshallingObjectInputStream
public final class UnmarshallingObjectInputStream

An object input stream which wraps an Unmarshaller, which may be used by legacy ObjectInputStream-based
applications that wish to use the marshalling framework.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class java.io.ObjectInputStream |
|---|
ObjectInputStream.GetField |
| Field Summary |
|---|
| Constructor Summary | |
|---|---|
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. |
|
| Method Summary | |
|---|---|
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)
|
| Methods inherited from class java.io.ObjectInputStream |
|---|
readObject |
| Methods inherited from class java.io.InputStream |
|---|
mark, markSupported, reset |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public UnmarshallingObjectInputStream(Unmarshaller unmarshaller,
InputStream stream)
throws IOException,
SecurityException
unmarshaller - the delegate unmarshallerstream - the input stream to read from
IOException - if an I/O error occurs
SecurityException - if the caller does not have permission to construct an instance of this class
public UnmarshallingObjectInputStream(Unmarshaller unmarshaller,
ByteInput byteInput)
throws IOException,
SecurityException
unmarshaller - the delegate unmarshallerbyteInput - the input stream to read from
IOException - if an I/O error occurs
SecurityException - if the caller does not have permission to construct an instance of this class| Method Detail |
|---|
public Object readUnshared()
throws IOException,
ClassNotFoundException
readUnshared in class ObjectInputStreamIOException
ClassNotFoundException
protected Object readObjectOverride()
throws ClassNotFoundException,
IOException
readObjectOverride in class ObjectInputStreamClassNotFoundException
IOException
public int read()
throws IOException
read in interface ObjectInputread in class ObjectInputStreamIOException
public int read(byte[] b)
throws IOException
read in interface ObjectInputread in class InputStreamIOException
public int read(byte[] b,
int off,
int len)
throws IOException
read in interface ObjectInputread in class ObjectInputStreamIOException
public long skip(long n)
throws IOException
skip in interface ObjectInputskip in class InputStreamIOException
public int available()
throws IOException
available in interface ObjectInputavailable in class ObjectInputStreamIOException
public void close()
throws IOException,
IllegalStateException
close in interface Closeableclose in interface ObjectInputclose in class ObjectInputStreamIOException
IllegalStateException
public void readFully(byte[] b)
throws IOException
readFully in interface DataInputreadFully in class ObjectInputStreamIOException
public void readFully(byte[] b,
int off,
int len)
throws IOException
readFully in interface DataInputreadFully in class ObjectInputStreamIOException
public int skipBytes(int n)
throws IOException
skipBytes in interface DataInputskipBytes in class ObjectInputStreamIOException
public boolean readBoolean()
throws IOException
readBoolean in interface DataInputreadBoolean in class ObjectInputStreamIOException
public byte readByte()
throws IOException
readByte in interface DataInputreadByte in class ObjectInputStreamIOException
public int readUnsignedByte()
throws IOException
readUnsignedByte in interface DataInputreadUnsignedByte in class ObjectInputStreamIOException
public short readShort()
throws IOException
readShort in interface DataInputreadShort in class ObjectInputStreamIOException
public int readUnsignedShort()
throws IOException
readUnsignedShort in interface DataInputreadUnsignedShort in class ObjectInputStreamIOException
public char readChar()
throws IOException
readChar in interface DataInputreadChar in class ObjectInputStreamIOException
public int readInt()
throws IOException
readInt in interface DataInputreadInt in class ObjectInputStreamIOException
public long readLong()
throws IOException
readLong in interface DataInputreadLong in class ObjectInputStreamIOException
public float readFloat()
throws IOException
readFloat in interface DataInputreadFloat in class ObjectInputStreamIOException
public double readDouble()
throws IOException
readDouble in interface DataInputreadDouble in class ObjectInputStreamIOException
@Deprecated
public String readLine()
throws IOException
readLine in interface DataInputreadLine in class ObjectInputStreamIOException
public String readUTF()
throws IOException
readUTF in interface DataInputreadUTF in class ObjectInputStreamIOException
public Object readObjectUnshared()
throws ClassNotFoundException,
IOException
ClassNotFoundException
IOException
protected final Class<?> resolveClass(ObjectStreamClass desc)
throws IllegalStateException
resolveClass in class ObjectInputStreamIllegalStateException
protected final Class<?> resolveProxyClass(String[] interfaces)
throws IllegalStateException
resolveProxyClass in class ObjectInputStreamIllegalStateException
protected final Object resolveObject(Object obj)
throws IllegalStateException
resolveObject in class ObjectInputStreamIllegalStateException
protected final boolean enableResolveObject(boolean enable)
throws IllegalStateException
enableResolveObject in class ObjectInputStreamIllegalStateException
protected final void readStreamHeader()
throws IllegalStateException
readStreamHeader in class ObjectInputStreamIllegalStateException
protected final ObjectStreamClass readClassDescriptor()
throws IllegalStateException
readClassDescriptor in class ObjectInputStreamIllegalStateException
public void defaultReadObject()
throws IllegalStateException
defaultReadObject in class ObjectInputStreamIllegalStateException - always
public ObjectInputStream.GetField readFields()
throws IllegalStateException
readFields in class ObjectInputStreamIllegalStateException - always
public void registerValidation(ObjectInputValidation obj,
int prio)
throws IllegalStateException
registerValidation in class ObjectInputStreamobj - ignoredprio - ignored
IllegalStateException - always
|
JBoss Marshalling 1.2.1.GA | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||