public class RiverObjectInputStream extends MarshallerObjectInputStream
| Modifier and Type | Field and Description |
|---|---|
private BlockUnmarshaller |
blockUnmarshaller |
private java.lang.Object |
current |
private static int |
OFF |
private static int |
ON |
private int |
restoreIdx |
private SerializableClassDescriptor |
serializableClassDescriptor |
private int |
state |
private RiverUnmarshaller |
unmarshaller |
private static int |
UNREAD_FIELDS |
private static int |
UNREAD_FIELDS_EOB |
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 |
|---|---|
private void |
checkState() |
void |
defaultReadObject() |
(package private) void |
discardReadObject() |
protected void |
finish(int restoreState) |
protected void |
fullReset() |
private int |
getAndSet(int set) |
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, resolveProxyClassprivate static final int OFF
private static final int UNREAD_FIELDS
private static final int UNREAD_FIELDS_EOB
private static final int ON
private final RiverUnmarshaller unmarshaller
private final BlockUnmarshaller blockUnmarshaller
private int state
private SerializableClassDescriptor serializableClassDescriptor
private java.lang.Object current
private int restoreIdx
protected RiverObjectInputStream(RiverUnmarshaller riverUnmarshaller, BlockUnmarshaller delegateUnmarshaller) throws java.io.IOException, java.lang.SecurityException
java.io.IOExceptionjava.lang.SecurityExceptionprivate int getAndSet(int set)
public void defaultReadObject()
throws java.io.IOException,
java.lang.ClassNotFoundException
MarshallerObjectInputStreamdefaultReadObject in class MarshallerObjectInputStreamjava.io.IOExceptionjava.lang.ClassNotFoundExceptionvoid discardReadObject()
throws java.io.IOException
java.io.IOExceptionpublic java.io.ObjectInputStream.GetField readFields()
throws java.io.IOException,
java.lang.ClassNotFoundException
MarshallerObjectInputStreamreadFields in class MarshallerObjectInputStreamjava.io.IOExceptionjava.lang.ClassNotFoundExceptionpublic void registerValidation(java.io.ObjectInputValidation obj,
int prio)
throws java.io.NotActiveException,
java.io.InvalidObjectException
MarshallerObjectInputStreamregisterValidation in class MarshallerObjectInputStreamjava.io.NotActiveExceptionjava.io.InvalidObjectExceptionprotected 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.IOExceptionprivate void checkState()
throws java.io.IOException
java.io.IOExceptionprotected java.lang.Object readObjectOverride()
throws java.io.IOException,
java.lang.ClassNotFoundException
MarshallerObjectInputStreamreadObjectOverride in class MarshallerObjectInputStreamjava.io.IOExceptionjava.lang.ClassNotFoundExceptionpublic java.lang.Object readUnshared()
throws java.io.IOException,
java.lang.ClassNotFoundException
MarshallerObjectInputStreamreadUnshared in class MarshallerObjectInputStreamjava.io.IOExceptionjava.lang.ClassNotFoundExceptionpublic int read()
throws java.io.IOException
MarshallerObjectInputStreamread in interface java.io.ObjectInputread in interface ByteInputread in class MarshallerObjectInputStreamjava.io.IOException - if an error occurspublic int read(byte[] buf)
throws java.io.IOException
MarshallerObjectInputStreamread in interface java.io.ObjectInputread in interface ByteInputread in class MarshallerObjectInputStreambuf - the destination arrayjava.io.IOException - if an error occurspublic int read(byte[] buf,
int off,
int len)
throws java.io.IOException
MarshallerObjectInputStreamread in interface java.io.ObjectInputread in interface ByteInputread in class MarshallerObjectInputStreambuf - 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
MarshallerObjectInputStreamreadBoolean in interface java.io.DataInputreadBoolean in class MarshallerObjectInputStreamjava.io.IOExceptionpublic byte readByte()
throws java.io.IOException
MarshallerObjectInputStreamreadByte in interface java.io.DataInputreadByte in class MarshallerObjectInputStreamjava.io.IOExceptionpublic int readUnsignedByte()
throws java.io.IOException
MarshallerObjectInputStreamreadUnsignedByte in interface java.io.DataInputreadUnsignedByte in class MarshallerObjectInputStreamjava.io.IOExceptionpublic char readChar()
throws java.io.IOException
MarshallerObjectInputStreamreadChar in interface java.io.DataInputreadChar in class MarshallerObjectInputStreamjava.io.IOExceptionpublic short readShort()
throws java.io.IOException
MarshallerObjectInputStreamreadShort in interface java.io.DataInputreadShort in class MarshallerObjectInputStreamjava.io.IOExceptionpublic int readUnsignedShort()
throws java.io.IOException
MarshallerObjectInputStreamreadUnsignedShort in interface java.io.DataInputreadUnsignedShort in class MarshallerObjectInputStreamjava.io.IOExceptionpublic int readInt()
throws java.io.IOException
MarshallerObjectInputStreamreadInt in interface java.io.DataInputreadInt in class MarshallerObjectInputStreamjava.io.IOExceptionpublic long readLong()
throws java.io.IOException
MarshallerObjectInputStreamreadLong in interface java.io.DataInputreadLong in class MarshallerObjectInputStreamjava.io.IOExceptionpublic float readFloat()
throws java.io.IOException
MarshallerObjectInputStreamreadFloat in interface java.io.DataInputreadFloat in class MarshallerObjectInputStreamjava.io.IOExceptionpublic double readDouble()
throws java.io.IOException
MarshallerObjectInputStreamreadDouble in interface java.io.DataInputreadDouble in class MarshallerObjectInputStreamjava.io.IOExceptionpublic void readFully(byte[] buf)
throws java.io.IOException
MarshallerObjectInputStreamreadFully in interface java.io.DataInputreadFully in class MarshallerObjectInputStreamjava.io.IOExceptionpublic void readFully(byte[] buf,
int off,
int len)
throws java.io.IOException
MarshallerObjectInputStreamreadFully in interface java.io.DataInputreadFully in class MarshallerObjectInputStreamjava.io.IOExceptionpublic int skipBytes(int len)
throws java.io.IOException
MarshallerObjectInputStreamskipBytes in interface java.io.DataInputskipBytes in class MarshallerObjectInputStreamjava.io.IOException@Deprecated
public java.lang.String readLine()
throws java.io.IOException
MarshallerObjectInputStreamreadLine in interface java.io.DataInputreadLine in class MarshallerObjectInputStreamjava.io.IOExceptionpublic java.lang.String readUTF()
throws java.io.IOException
MarshallerObjectInputStreamreadUTF in interface java.io.DataInputreadUTF in class MarshallerObjectInputStreamjava.io.IOExceptionpublic long skip(long n)
throws java.io.IOException
MarshallerObjectInputStreamn 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.ObjectInputskip in interface ByteInputskip in class MarshallerObjectInputStreamn - the number of bytes to attempt to skipjava.io.IOException - if an error occursprotected void fullReset()
protected void noCustomData()
protected int getRestoreIdx()