public class RiverObjectInputStream extends MarshallerObjectInputStream
ObjectInputStream.GetField
nameToClass
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() |
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, resolveProxyClass
readObject
protected RiverObjectInputStream(RiverUnmarshaller riverUnmarshaller, BlockUnmarshaller delegateUnmarshaller) throws IOException, SecurityException
IOException
SecurityException
public void defaultReadObject() throws IOException, ClassNotFoundException
MarshallerObjectInputStream
defaultReadObject
in class MarshallerObjectInputStream
IOException
ClassNotFoundException
public ObjectInputStream.GetField readFields() throws IOException, ClassNotFoundException
MarshallerObjectInputStream
readFields
in class MarshallerObjectInputStream
IOException
ClassNotFoundException
public void registerValidation(ObjectInputValidation obj, int prio) throws NotActiveException, InvalidObjectException
MarshallerObjectInputStream
registerValidation
in class MarshallerObjectInputStream
NotActiveException
InvalidObjectException
protected SerializableClassDescriptor swapClass(SerializableClassDescriptor descriptor)
protected int start()
protected void finish(int restoreState) throws IOException
IOException
protected Object readObjectOverride() throws IOException, ClassNotFoundException
MarshallerObjectInputStream
readObjectOverride
in class MarshallerObjectInputStream
IOException
ClassNotFoundException
public Object readUnshared() throws IOException, ClassNotFoundException
MarshallerObjectInputStream
readUnshared
in class MarshallerObjectInputStream
IOException
ClassNotFoundException
public int read() throws IOException
MarshallerObjectInputStream
read
in interface ObjectInput
read
in interface ByteInput
read
in class MarshallerObjectInputStream
IOException
- if an error occurspublic int read(byte[] buf) throws IOException
MarshallerObjectInputStream
read
in interface ObjectInput
read
in interface ByteInput
read
in class MarshallerObjectInputStream
buf
- the destination arrayIOException
- if an error occurspublic int read(byte[] buf, int off, int len) throws IOException
MarshallerObjectInputStream
read
in interface 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 arrayIOException
- if an error occurspublic boolean readBoolean() throws IOException
MarshallerObjectInputStream
readBoolean
in interface DataInput
readBoolean
in class MarshallerObjectInputStream
IOException
public byte readByte() throws IOException
MarshallerObjectInputStream
readByte
in interface DataInput
readByte
in class MarshallerObjectInputStream
IOException
public int readUnsignedByte() throws IOException
MarshallerObjectInputStream
readUnsignedByte
in interface DataInput
readUnsignedByte
in class MarshallerObjectInputStream
IOException
public char readChar() throws IOException
MarshallerObjectInputStream
readChar
in interface DataInput
readChar
in class MarshallerObjectInputStream
IOException
public short readShort() throws IOException
MarshallerObjectInputStream
readShort
in interface DataInput
readShort
in class MarshallerObjectInputStream
IOException
public int readUnsignedShort() throws IOException
MarshallerObjectInputStream
readUnsignedShort
in interface DataInput
readUnsignedShort
in class MarshallerObjectInputStream
IOException
public int readInt() throws IOException
MarshallerObjectInputStream
readInt
in interface DataInput
readInt
in class MarshallerObjectInputStream
IOException
public long readLong() throws IOException
MarshallerObjectInputStream
readLong
in interface DataInput
readLong
in class MarshallerObjectInputStream
IOException
public float readFloat() throws IOException
MarshallerObjectInputStream
readFloat
in interface DataInput
readFloat
in class MarshallerObjectInputStream
IOException
public double readDouble() throws IOException
MarshallerObjectInputStream
readDouble
in interface DataInput
readDouble
in class MarshallerObjectInputStream
IOException
public void readFully(byte[] buf) throws IOException
MarshallerObjectInputStream
readFully
in interface DataInput
readFully
in class MarshallerObjectInputStream
IOException
public void readFully(byte[] buf, int off, int len) throws IOException
MarshallerObjectInputStream
readFully
in interface DataInput
readFully
in class MarshallerObjectInputStream
IOException
public int skipBytes(int len) throws IOException
MarshallerObjectInputStream
skipBytes
in interface DataInput
skipBytes
in class MarshallerObjectInputStream
IOException
@Deprecated public String readLine() throws IOException
MarshallerObjectInputStream
readLine
in interface DataInput
readLine
in class MarshallerObjectInputStream
IOException
public String readUTF() throws IOException
MarshallerObjectInputStream
readUTF
in interface DataInput
readUTF
in class MarshallerObjectInputStream
IOException
public long skip(long n) throws 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 ObjectInput
skip
in interface ByteInput
skip
in class MarshallerObjectInputStream
n
- the number of bytes to attempt to skipIOException
- if an error occursprotected void fullReset()
protected void noCustomData()
protected int getRestoreIdx()
Copyright © 2021 JBoss by Red Hat. All rights reserved.