public class RiverObjectInputStream extends MarshallerObjectInputStream
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| 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() |
ObjectInputStream.GetField |
readFields() |
float |
readFloat() |
void |
readFully(byte[] buf) |
void |
readFully(byte[] buf,
int off,
int len) |
int |
readInt() |
String |
readLine()
Deprecated.
|
long |
readLong() |
protected Object |
readObjectOverride() |
short |
readShort() |
Object |
readUnshared() |
int |
readUnsignedByte() |
int |
readUnsignedShort() |
String |
readUTF() |
void |
registerValidation(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 Object |
swapCurrent(Object obj) |
available, close, enableResolveObject, mark, markSupported, readClassDescriptor, readStreamHeader, reset, resolveClass, resolveObject, resolveProxyClassreadObjectprotected RiverObjectInputStream(RiverUnmarshaller riverUnmarshaller, BlockUnmarshaller delegateUnmarshaller) throws IOException, SecurityException
IOExceptionSecurityExceptionpublic void defaultReadObject()
throws IOException,
ClassNotFoundException
MarshallerObjectInputStreamdefaultReadObject in class MarshallerObjectInputStreamIOExceptionClassNotFoundExceptionpublic ObjectInputStream.GetField readFields() throws IOException, ClassNotFoundException
MarshallerObjectInputStreamreadFields in class MarshallerObjectInputStreamIOExceptionClassNotFoundExceptionpublic void registerValidation(ObjectInputValidation obj, int prio) throws NotActiveException, InvalidObjectException
MarshallerObjectInputStreamregisterValidation in class MarshallerObjectInputStreamNotActiveExceptionInvalidObjectExceptionprotected SerializableClassDescriptor swapClass(SerializableClassDescriptor descriptor)
protected int start()
protected void finish(int restoreState)
throws IOException
IOExceptionprotected Object readObjectOverride() throws IOException, ClassNotFoundException
MarshallerObjectInputStreamreadObjectOverride in class MarshallerObjectInputStreamIOExceptionClassNotFoundExceptionpublic Object readUnshared() throws IOException, ClassNotFoundException
MarshallerObjectInputStreamreadUnshared in class MarshallerObjectInputStreamIOExceptionClassNotFoundExceptionpublic int read()
throws IOException
MarshallerObjectInputStreamread in interface ObjectInputread in interface ByteInputread in class MarshallerObjectInputStreamIOException - if an error occurspublic int read(byte[] buf)
throws IOException
MarshallerObjectInputStreamread in interface ObjectInputread in interface ByteInputread in class MarshallerObjectInputStreambuf - the destination arrayIOException - if an error occurspublic int read(byte[] buf,
int off,
int len)
throws IOException
MarshallerObjectInputStreamread in interface 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 arrayIOException - if an error occurspublic boolean readBoolean()
throws IOException
MarshallerObjectInputStreamreadBoolean in interface DataInputreadBoolean in class MarshallerObjectInputStreamIOExceptionpublic byte readByte()
throws IOException
MarshallerObjectInputStreamreadByte in interface DataInputreadByte in class MarshallerObjectInputStreamIOExceptionpublic int readUnsignedByte()
throws IOException
MarshallerObjectInputStreamreadUnsignedByte in interface DataInputreadUnsignedByte in class MarshallerObjectInputStreamIOExceptionpublic char readChar()
throws IOException
MarshallerObjectInputStreamreadChar in interface DataInputreadChar in class MarshallerObjectInputStreamIOExceptionpublic short readShort()
throws IOException
MarshallerObjectInputStreamreadShort in interface DataInputreadShort in class MarshallerObjectInputStreamIOExceptionpublic int readUnsignedShort()
throws IOException
MarshallerObjectInputStreamreadUnsignedShort in interface DataInputreadUnsignedShort in class MarshallerObjectInputStreamIOExceptionpublic int readInt()
throws IOException
MarshallerObjectInputStreamreadInt in interface DataInputreadInt in class MarshallerObjectInputStreamIOExceptionpublic long readLong()
throws IOException
MarshallerObjectInputStreamreadLong in interface DataInputreadLong in class MarshallerObjectInputStreamIOExceptionpublic float readFloat()
throws IOException
MarshallerObjectInputStreamreadFloat in interface DataInputreadFloat in class MarshallerObjectInputStreamIOExceptionpublic double readDouble()
throws IOException
MarshallerObjectInputStreamreadDouble in interface DataInputreadDouble in class MarshallerObjectInputStreamIOExceptionpublic void readFully(byte[] buf)
throws IOException
MarshallerObjectInputStreamreadFully in interface DataInputreadFully in class MarshallerObjectInputStreamIOExceptionpublic void readFully(byte[] buf,
int off,
int len)
throws IOException
MarshallerObjectInputStreamreadFully in interface DataInputreadFully in class MarshallerObjectInputStreamIOExceptionpublic int skipBytes(int len)
throws IOException
MarshallerObjectInputStreamskipBytes in interface DataInputskipBytes in class MarshallerObjectInputStreamIOException@Deprecated public String readLine() throws IOException
MarshallerObjectInputStreamreadLine in interface DataInputreadLine in class MarshallerObjectInputStreamIOExceptionpublic String readUTF() throws IOException
MarshallerObjectInputStreamreadUTF in interface DataInputreadUTF in class MarshallerObjectInputStreamIOExceptionpublic long skip(long n)
throws 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 ObjectInputskip in interface ByteInputskip in class MarshallerObjectInputStreamn - the number of bytes to attempt to skipIOException - if an error occursprotected void fullReset()
protected void noCustomData()
protected int getRestoreIdx()
Copyright © 2020 JBoss by Red Hat. All rights reserved.