public abstract class MarshallerObjectInputStream extends ObjectInputStream implements ByteInput
Serializable
.
This class is not part of the marshalling API; rather it is intended for marshaller implementers to make it easier to develop Java serialization-compatible marshallers.
ObjectInputStream.GetField
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 |
MarshallerObjectInputStream(Unmarshaller input)
Construct a new instance which delegates to the given unmarshaller.
|
Modifier and Type | Method and Description |
---|---|
int |
available()
Returns an estimate of the number of bytes that can be read (or skipped over) from this input stream without
blocking by the next invocation of a method for this input stream.
|
void |
close() |
abstract void |
defaultReadObject() |
protected boolean |
enableResolveObject(boolean enable) |
void |
mark(int readlimit) |
boolean |
markSupported() |
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() |
protected ObjectStreamClass |
readClassDescriptor() |
double |
readDouble() |
abstract 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() |
protected void |
readStreamHeader() |
Object |
readUnshared() |
int |
readUnsignedByte() |
int |
readUnsignedShort() |
String |
readUTF() |
abstract void |
registerValidation(ObjectInputValidation obj,
int prio) |
void |
reset() |
protected Class<?> |
resolveClass(ObjectStreamClass desc) |
protected Object |
resolveObject(Object obj) |
protected Class<?> |
resolveProxyClass(String[] interfaces) |
long |
skip(long n)
Skips over and discards up to
n bytes of data from this input stream. |
int |
skipBytes(int len) |
readObject
protected MarshallerObjectInputStream(Unmarshaller input) throws IOException, SecurityException
input
- the delegate unmarshallerIOException
- if an I/O error occursSecurityException
- if the caller does not have permission to construct an instance of this classprotected Object readObjectOverride() throws IOException, ClassNotFoundException
readObjectOverride
in class ObjectInputStream
IOException
ClassNotFoundException
public Object readUnshared() throws IOException, ClassNotFoundException
readUnshared
in class ObjectInputStream
IOException
ClassNotFoundException
public int read() throws IOException
read
in interface ObjectInput
read
in interface ByteInput
read
in class ObjectInputStream
IOException
- if an error occurspublic int read(byte[] buf) throws IOException
read
in interface ObjectInput
read
in interface ByteInput
read
in class InputStream
buf
- the destination arrayIOException
- if an error occurspublic int read(byte[] buf, int off, int len) throws IOException
read
in interface ObjectInput
read
in interface ByteInput
read
in class ObjectInputStream
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 int available() throws IOException
available
in interface ObjectInput
available
in interface ByteInput
available
in class ObjectInputStream
IOException
- if an error occurspublic boolean readBoolean() throws IOException
readBoolean
in interface DataInput
readBoolean
in class ObjectInputStream
IOException
public byte readByte() throws IOException
readByte
in interface DataInput
readByte
in class ObjectInputStream
IOException
public int readUnsignedByte() throws IOException
readUnsignedByte
in interface DataInput
readUnsignedByte
in class ObjectInputStream
IOException
public char readChar() throws IOException
readChar
in interface DataInput
readChar
in class ObjectInputStream
IOException
public short readShort() throws IOException
readShort
in interface DataInput
readShort
in class ObjectInputStream
IOException
public int readUnsignedShort() throws IOException
readUnsignedShort
in interface DataInput
readUnsignedShort
in class ObjectInputStream
IOException
public int readInt() throws IOException
readInt
in interface DataInput
readInt
in class ObjectInputStream
IOException
public long readLong() throws IOException
readLong
in interface DataInput
readLong
in class ObjectInputStream
IOException
public float readFloat() throws IOException
readFloat
in interface DataInput
readFloat
in class ObjectInputStream
IOException
public double readDouble() throws IOException
readDouble
in interface DataInput
readDouble
in class ObjectInputStream
IOException
public void readFully(byte[] buf) throws IOException
readFully
in interface DataInput
readFully
in class ObjectInputStream
IOException
public void readFully(byte[] buf, int off, int len) throws IOException
readFully
in interface DataInput
readFully
in class ObjectInputStream
IOException
public int skipBytes(int len) throws IOException
skipBytes
in interface DataInput
skipBytes
in class ObjectInputStream
IOException
@Deprecated public String readLine() throws IOException
readLine
in interface DataInput
readLine
in class ObjectInputStream
IOException
public String readUTF() throws IOException
readUTF
in interface DataInput
readUTF
in class ObjectInputStream
IOException
public long skip(long n) throws IOException
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 InputStream
n
- the number of bytes to attempt to skipIOException
- if an error occurspublic final void mark(int readlimit)
mark
in class InputStream
public final void reset() throws IOException
reset
in class InputStream
IOException
public final boolean markSupported()
markSupported
in class InputStream
public final void close() throws IllegalStateException
close
in interface Closeable
close
in interface ObjectInput
close
in interface AutoCloseable
close
in class ObjectInputStream
IllegalStateException
protected final Class<?> resolveClass(ObjectStreamClass desc) throws IllegalStateException
resolveClass
in class ObjectInputStream
IllegalStateException
protected final Class<?> resolveProxyClass(String[] interfaces) throws IllegalStateException
resolveProxyClass
in class ObjectInputStream
IllegalStateException
protected final Object resolveObject(Object obj) throws IllegalStateException
resolveObject
in class ObjectInputStream
IllegalStateException
protected final boolean enableResolveObject(boolean enable) throws IllegalStateException
enableResolveObject
in class ObjectInputStream
IllegalStateException
protected final void readStreamHeader() throws IllegalStateException
readStreamHeader
in class ObjectInputStream
IllegalStateException
protected final ObjectStreamClass readClassDescriptor() throws IllegalStateException
readClassDescriptor
in class ObjectInputStream
IllegalStateException
public abstract void defaultReadObject() throws IOException, ClassNotFoundException
defaultReadObject
in class ObjectInputStream
IOException
ClassNotFoundException
public abstract ObjectInputStream.GetField readFields() throws IOException, ClassNotFoundException
readFields
in class ObjectInputStream
IOException
ClassNotFoundException
public abstract void registerValidation(ObjectInputValidation obj, int prio) throws NotActiveException, InvalidObjectException
registerValidation
in class ObjectInputStream
NotActiveException
InvalidObjectException
Copyright © 2017 JBoss by Red Hat. All rights reserved.