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.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 |
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) |
readObjectprotected 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 ObjectInputStreamIOExceptionClassNotFoundExceptionpublic Object readUnshared() throws IOException, ClassNotFoundException
readUnshared in class ObjectInputStreamIOExceptionClassNotFoundExceptionpublic int read()
throws IOException
read in interface ObjectInputread in interface ByteInputread in class ObjectInputStreamIOException - if an error occurspublic int read(byte[] buf)
throws IOException
read in interface ObjectInputread in interface ByteInputread in class InputStreambuf - the destination arrayIOException - if an error occurspublic int read(byte[] buf,
int off,
int len)
throws IOException
read in interface ObjectInputread in interface ByteInputread in class ObjectInputStreambuf - 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 ObjectInputavailable in interface ByteInputavailable in class ObjectInputStreamIOException - if an error occurspublic boolean readBoolean()
throws IOException
readBoolean in interface DataInputreadBoolean in class ObjectInputStreamIOExceptionpublic byte readByte()
throws IOException
readByte in interface DataInputreadByte in class ObjectInputStreamIOExceptionpublic int readUnsignedByte()
throws IOException
readUnsignedByte in interface DataInputreadUnsignedByte in class ObjectInputStreamIOExceptionpublic char readChar()
throws IOException
readChar in interface DataInputreadChar in class ObjectInputStreamIOExceptionpublic short readShort()
throws IOException
readShort in interface DataInputreadShort in class ObjectInputStreamIOExceptionpublic int readUnsignedShort()
throws IOException
readUnsignedShort in interface DataInputreadUnsignedShort in class ObjectInputStreamIOExceptionpublic int readInt()
throws IOException
readInt in interface DataInputreadInt in class ObjectInputStreamIOExceptionpublic long readLong()
throws IOException
readLong in interface DataInputreadLong in class ObjectInputStreamIOExceptionpublic float readFloat()
throws IOException
readFloat in interface DataInputreadFloat in class ObjectInputStreamIOExceptionpublic double readDouble()
throws IOException
readDouble in interface DataInputreadDouble in class ObjectInputStreamIOExceptionpublic void readFully(byte[] buf)
throws IOException
readFully in interface DataInputreadFully in class ObjectInputStreamIOExceptionpublic void readFully(byte[] buf,
int off,
int len)
throws IOException
readFully in interface DataInputreadFully in class ObjectInputStreamIOExceptionpublic int skipBytes(int len)
throws IOException
skipBytes in interface DataInputskipBytes in class ObjectInputStreamIOException@Deprecated public String readLine() throws IOException
readLine in interface DataInputreadLine in class ObjectInputStreamIOExceptionpublic String readUTF() throws IOException
readUTF in interface DataInputreadUTF in class ObjectInputStreamIOExceptionpublic 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 ObjectInputskip in interface ByteInputskip in class InputStreamn - the number of bytes to attempt to skipIOException - if an error occurspublic final void mark(int readlimit)
mark in class InputStreampublic final void reset()
throws IOException
reset in class InputStreamIOExceptionpublic final boolean markSupported()
markSupported in class InputStreampublic final void close()
throws IllegalStateException
close in interface Closeableclose in interface ObjectInputclose in interface AutoCloseableclose in class ObjectInputStreamIllegalStateExceptionprotected final Class<?> resolveClass(ObjectStreamClass desc) throws IllegalStateException
resolveClass in class ObjectInputStreamIllegalStateExceptionprotected final Class<?> resolveProxyClass(String[] interfaces) throws IllegalStateException
resolveProxyClass in class ObjectInputStreamIllegalStateExceptionprotected final Object resolveObject(Object obj) throws IllegalStateException
resolveObject in class ObjectInputStreamIllegalStateExceptionprotected final boolean enableResolveObject(boolean enable)
throws IllegalStateException
enableResolveObject in class ObjectInputStreamIllegalStateExceptionprotected final void readStreamHeader()
throws IllegalStateException
readStreamHeader in class ObjectInputStreamIllegalStateExceptionprotected final ObjectStreamClass readClassDescriptor() throws IllegalStateException
readClassDescriptor in class ObjectInputStreamIllegalStateExceptionpublic abstract void defaultReadObject()
throws IOException,
ClassNotFoundException
defaultReadObject in class ObjectInputStreamIOExceptionClassNotFoundExceptionpublic abstract ObjectInputStream.GetField readFields() throws IOException, ClassNotFoundException
readFields in class ObjectInputStreamIOExceptionClassNotFoundExceptionpublic abstract void registerValidation(ObjectInputValidation obj, int prio) throws NotActiveException, InvalidObjectException
registerValidation in class ObjectInputStreamNotActiveExceptionInvalidObjectExceptionCopyright © 2019 JBoss by Red Hat. All rights reserved.