public class RiverObjectInputStream extends MarshallerObjectInputStream
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
Modifier | Constructor and Description |
---|---|
protected |
RiverObjectInputStream(RiverUnmarshaller riverUnmarshaller,
BlockUnmarshaller delegateUnmarshaller) |
Modifier and Type | Method and Description |
---|---|
void |
defaultReadObject() |
protected void |
finish(int restoreState) |
protected void |
fullReset() |
protected int |
getRestoreIdx() |
protected void |
noCustomData() |
int |
read()
Reads the next byte of data from the input stream.
|
int |
read(byte[] buf)
Read some bytes from the input stream into the given array.
|
int |
read(byte[] buf,
int off,
int len)
Read some bytes from the input stream into the given array.
|
boolean |
readBoolean() |
byte |
readByte() |
char |
readChar() |
double |
readDouble() |
java.io.ObjectInputStream.GetField |
readFields() |
float |
readFloat() |
void |
readFully(byte[] buf) |
void |
readFully(byte[] buf,
int off,
int len) |
int |
readInt() |
java.lang.String |
readLine()
Deprecated.
|
long |
readLong() |
protected java.lang.Object |
readObjectOverride() |
short |
readShort() |
java.lang.Object |
readUnshared() |
int |
readUnsignedByte() |
int |
readUnsignedShort() |
java.lang.String |
readUTF() |
void |
registerValidation(java.io.ObjectInputValidation obj,
int prio) |
long |
skip(long n)
Skips over and discards up to
n bytes of data from this input stream. |
int |
skipBytes(int len) |
protected int |
start() |
protected SerializableClassDescriptor |
swapClass(SerializableClassDescriptor descriptor) |
protected java.lang.Object |
swapCurrent(java.lang.Object obj) |
available, close, enableResolveObject, mark, markSupported, readClassDescriptor, readStreamHeader, reset, resolveClass, resolveObject, resolveProxyClass
protected RiverObjectInputStream(RiverUnmarshaller riverUnmarshaller, BlockUnmarshaller delegateUnmarshaller) throws java.io.IOException, java.lang.SecurityException
java.io.IOException
java.lang.SecurityException
public void defaultReadObject() throws java.io.IOException, java.lang.ClassNotFoundException
MarshallerObjectInputStream
defaultReadObject
in class MarshallerObjectInputStream
java.io.IOException
java.lang.ClassNotFoundException
public java.io.ObjectInputStream.GetField readFields() throws java.io.IOException, java.lang.ClassNotFoundException
MarshallerObjectInputStream
readFields
in class MarshallerObjectInputStream
java.io.IOException
java.lang.ClassNotFoundException
public void registerValidation(java.io.ObjectInputValidation obj, int prio) throws java.io.NotActiveException, java.io.InvalidObjectException
MarshallerObjectInputStream
registerValidation
in class MarshallerObjectInputStream
java.io.NotActiveException
java.io.InvalidObjectException
protected SerializableClassDescriptor swapClass(SerializableClassDescriptor descriptor)
protected java.lang.Object swapCurrent(java.lang.Object obj)
protected int start()
protected void finish(int restoreState) throws java.io.IOException
java.io.IOException
protected java.lang.Object readObjectOverride() throws java.io.IOException, java.lang.ClassNotFoundException
MarshallerObjectInputStream
readObjectOverride
in class MarshallerObjectInputStream
java.io.IOException
java.lang.ClassNotFoundException
public java.lang.Object readUnshared() throws java.io.IOException, java.lang.ClassNotFoundException
MarshallerObjectInputStream
readUnshared
in class MarshallerObjectInputStream
java.io.IOException
java.lang.ClassNotFoundException
public int read() throws java.io.IOException
MarshallerObjectInputStream
read
in interface java.io.ObjectInput
read
in interface ByteInput
read
in class MarshallerObjectInputStream
java.io.IOException
- if an error occurspublic int read(byte[] buf) throws java.io.IOException
MarshallerObjectInputStream
read
in interface java.io.ObjectInput
read
in interface ByteInput
read
in class MarshallerObjectInputStream
buf
- the destination arrayjava.io.IOException
- if an error occurspublic int read(byte[] buf, int off, int len) throws java.io.IOException
MarshallerObjectInputStream
read
in interface java.io.ObjectInput
read
in interface ByteInput
read
in class MarshallerObjectInputStream
buf
- the destination arrayoff
- the offset into the array into which data should be readlen
- the number of bytes to attempt to fill in the destination arrayjava.io.IOException
- if an error occurspublic boolean readBoolean() throws java.io.IOException
MarshallerObjectInputStream
readBoolean
in interface java.io.DataInput
readBoolean
in class MarshallerObjectInputStream
java.io.IOException
public byte readByte() throws java.io.IOException
MarshallerObjectInputStream
readByte
in interface java.io.DataInput
readByte
in class MarshallerObjectInputStream
java.io.IOException
public int readUnsignedByte() throws java.io.IOException
MarshallerObjectInputStream
readUnsignedByte
in interface java.io.DataInput
readUnsignedByte
in class MarshallerObjectInputStream
java.io.IOException
public char readChar() throws java.io.IOException
MarshallerObjectInputStream
readChar
in interface java.io.DataInput
readChar
in class MarshallerObjectInputStream
java.io.IOException
public short readShort() throws java.io.IOException
MarshallerObjectInputStream
readShort
in interface java.io.DataInput
readShort
in class MarshallerObjectInputStream
java.io.IOException
public int readUnsignedShort() throws java.io.IOException
MarshallerObjectInputStream
readUnsignedShort
in interface java.io.DataInput
readUnsignedShort
in class MarshallerObjectInputStream
java.io.IOException
public int readInt() throws java.io.IOException
MarshallerObjectInputStream
readInt
in interface java.io.DataInput
readInt
in class MarshallerObjectInputStream
java.io.IOException
public long readLong() throws java.io.IOException
MarshallerObjectInputStream
readLong
in interface java.io.DataInput
readLong
in class MarshallerObjectInputStream
java.io.IOException
public float readFloat() throws java.io.IOException
MarshallerObjectInputStream
readFloat
in interface java.io.DataInput
readFloat
in class MarshallerObjectInputStream
java.io.IOException
public double readDouble() throws java.io.IOException
MarshallerObjectInputStream
readDouble
in interface java.io.DataInput
readDouble
in class MarshallerObjectInputStream
java.io.IOException
public void readFully(byte[] buf) throws java.io.IOException
MarshallerObjectInputStream
readFully
in interface java.io.DataInput
readFully
in class MarshallerObjectInputStream
java.io.IOException
public void readFully(byte[] buf, int off, int len) throws java.io.IOException
MarshallerObjectInputStream
readFully
in interface java.io.DataInput
readFully
in class MarshallerObjectInputStream
java.io.IOException
public int skipBytes(int len) throws java.io.IOException
MarshallerObjectInputStream
skipBytes
in interface java.io.DataInput
skipBytes
in class MarshallerObjectInputStream
java.io.IOException
@Deprecated public java.lang.String readLine() throws java.io.IOException
MarshallerObjectInputStream
readLine
in interface java.io.DataInput
readLine
in class MarshallerObjectInputStream
java.io.IOException
public java.lang.String readUTF() throws java.io.IOException
MarshallerObjectInputStream
readUTF
in interface java.io.DataInput
readUTF
in class MarshallerObjectInputStream
java.io.IOException
public long skip(long n) throws java.io.IOException
MarshallerObjectInputStream
n
bytes of data from this input stream. If the end of stream is reached,
this method returns 0
in order to be consistent with InputStream.skip(long)
.skip
in interface java.io.ObjectInput
skip
in interface ByteInput
skip
in class MarshallerObjectInputStream
n
- the number of bytes to attempt to skipjava.io.IOException
- if an error occursprotected void fullReset()
protected void noCustomData()
protected int getRestoreIdx()
Copyright © 2011 JBoss, a division of Red Hat, Inc.