public class IIOPInputStream extends InputStreamHook
InputStreamHook.DefaultState, InputStreamHook.InReadObjectDefaultsSentState, InputStreamHook.InReadObjectNoMoreOptionalDataState, InputStreamHook.InReadObjectOptionalDataState, InputStreamHook.InReadObjectPastDefaultsRemoteDidNotUseWOState, InputStreamHook.InReadObjectRemoteDidNotUseWriteObjectState, InputStreamHook.NoReadObjectDefaultsSentState, InputStreamHook.ReadObjectStateObjectInputStream.GetField| Modifier and Type | Field and Description |
|---|---|
static TypeCode |
kRemoteTypeCode |
static TypeCode |
kValueTypeCode |
DEFAULT_STATE, IN_READ_OBJECT_DEFAULTS_SENT, IN_READ_OBJECT_NO_MORE_OPT_DATA, IN_READ_OBJECT_OPT_DATA, IN_READ_OBJECT_PAST_DEFAULTS_REMOTE_NOT_CUSTOM, IN_READ_OBJECT_REMOTE_NOT_CUSTOM_MARSHALED, NO_READ_OBJECT_DEFAULTS_SENT, readObjectStatebaseWireHandle, 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| Constructor and Description |
|---|
IIOPInputStream()
Dummy constructor; passes upper stream a dummy stream;
|
| Modifier and Type | Method and Description |
|---|---|
int |
available() |
void |
close() |
boolean |
enableResolveObjectDelegate(boolean enable)
Override the actions of the final method "enableResolveObject()"
in ObjectInputStream.
|
CodeBase |
getSender() |
protected byte |
getStreamFormatVersion() |
ValueHandler |
getValueHandler() |
protected String |
internalReadUTF(InputStream stream)
Helper method for correcting the Kestrel bug 4367783 (dealing
with larger than 8-bit chars).
|
void |
mark(int readAheadLimit) |
boolean |
markSupported() |
int |
read() |
int |
read(byte[] data,
int offset,
int length) |
boolean |
readBoolean() |
byte |
readByte() |
char |
readChar() |
double |
readDouble() |
float |
readFloat() |
void |
readFully(byte[] data) |
void |
readFully(byte[] data,
int offset,
int size) |
int |
readInt() |
String |
readLine() |
long |
readLong() |
Object |
readObjectDelegate()
Override the actions of the final method "readObject()"
in ObjectInputStream.
|
protected Object |
readObjectOverride()
This method is called by trusted subclasses of ObjectOutputStream
that constructed ObjectOutputStream using the
protected no-arg constructor.
|
short |
readShort() |
protected void |
readStreamHeader() |
int |
readUnsignedByte() |
int |
readUnsignedShort() |
String |
readUTF() |
void |
registerValidation(ObjectInputValidation obj,
int prio) |
void |
reset() |
protected Class |
resolveClass(ObjectStreamClass v) |
protected Object |
resolveObject(Object obj) |
void |
setSender(CodeBase cb) |
static void |
setTestFVDFlag(boolean val) |
void |
setValueHandler(ValueHandler vh) |
void |
simpleSkipObject(String repositoryID,
CodeBase sender) |
int |
skipBytes(int len) |
defaultReadObject, readFields, setState, throwOptionalDataIncompatibleExceptionenableResolveObject, readClassDescriptor, readObject, readUnshared, resolveClass, resolveProxyClassread, skipclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitread, skippublic static final TypeCode kRemoteTypeCode
public static final TypeCode kValueTypeCode
public IIOPInputStream()
throws IOException
IOExceptionprotected byte getStreamFormatVersion()
getStreamFormatVersion in class InputStreamHookpublic static void setTestFVDFlag(boolean val)
public final void setSender(CodeBase cb)
public final CodeBase getSender()
public final void setValueHandler(ValueHandler vh)
public final ValueHandler getValueHandler()
public final Object readObjectDelegate() throws IOException
ClassNotFoundException - Class of a serialized object
cannot be found.InvalidClassException - Something is wrong with a class used by
serialization.StreamCorruptedException - Control information in the
stream is inconsistent.OptionalDataException - Primitive data was found in the
stream instead of objects.IOException - Any of the usual Input/Output related exceptions.The root object is completly restored when all of its fields and the objects it references are completely restored. At this point the object validation callbacks are executed in order based on their registered priorities. The callbacks are registered by objects (in the readObject special methods) as they are individually restored. Exceptions are thrown for problems with the InputStream and for classes that should not be deserialized. All exceptions are fatal to the InputStream and leave it in an indeterminate state; it is up to the caller to ignore or recover the stream state., JDK1.1
protected final Object readObjectOverride() throws OptionalDataException, ClassNotFoundException, IOException
readObjectOverride in class ObjectInputStreamOptionalDataExceptionClassNotFoundExceptionIOException#ObjectInputStream(),
ObjectInputStream.readObject()public final boolean enableResolveObjectDelegate(boolean enable)
SecurityException - The classloader of this stream object is non-null.When enabled the resolveObject method is called for every object being deserialized., JDK1.1
public final void mark(int readAheadLimit)
mark in class InputStreampublic final boolean markSupported()
markSupported in class InputStreampublic final void reset()
throws IOException
reset in class InputStreamIOExceptionpublic final int available()
throws IOException
available in interface ObjectInputavailable in class ObjectInputStreamIOExceptionpublic final void close()
throws IOException
close in interface Closeableclose in interface ObjectInputclose in interface AutoCloseableclose in class ObjectInputStreamIOExceptionpublic final int read()
throws IOException
read in interface ObjectInputread in class ObjectInputStreamIOExceptionpublic final int read(byte[] data,
int offset,
int length)
throws IOException
read in interface ObjectInputread in class ObjectInputStreamIOExceptionpublic final boolean readBoolean()
throws IOException
readBoolean in interface DataInputreadBoolean in class ObjectInputStreamIOExceptionpublic final byte readByte()
throws IOException
readByte in interface DataInputreadByte in class ObjectInputStreamIOExceptionpublic final char readChar()
throws IOException
readChar in interface DataInputreadChar in class ObjectInputStreamIOExceptionpublic final double readDouble()
throws IOException
readDouble in interface DataInputreadDouble in class ObjectInputStreamIOExceptionpublic final float readFloat()
throws IOException
readFloat in interface DataInputreadFloat in class ObjectInputStreamIOExceptionpublic final void readFully(byte[] data)
throws IOException
readFully in interface DataInputreadFully in class ObjectInputStreamIOExceptionpublic final void readFully(byte[] data,
int offset,
int size)
throws IOException
readFully in interface DataInputreadFully in class ObjectInputStreamIOExceptionpublic final int readInt()
throws IOException
readInt in interface DataInputreadInt in class ObjectInputStreamIOExceptionpublic final String readLine() throws IOException
readLine in interface DataInputreadLine in class ObjectInputStreamIOExceptionpublic final long readLong()
throws IOException
readLong in interface DataInputreadLong in class ObjectInputStreamIOExceptionpublic final short readShort()
throws IOException
readShort in interface DataInputreadShort in class ObjectInputStreamIOExceptionprotected final void readStreamHeader()
throws IOException,
StreamCorruptedException
readStreamHeader in class ObjectInputStreamIOExceptionStreamCorruptedExceptionpublic final int readUnsignedByte()
throws IOException
readUnsignedByte in interface DataInputreadUnsignedByte in class ObjectInputStreamIOExceptionpublic final int readUnsignedShort()
throws IOException
readUnsignedShort in interface DataInputreadUnsignedShort in class ObjectInputStreamIOExceptionprotected String internalReadUTF(InputStream stream)
public final String readUTF() throws IOException
readUTF in interface DataInputreadUTF in class ObjectInputStreamIOExceptionpublic final void registerValidation(ObjectInputValidation obj, int prio) throws NotActiveException, InvalidObjectException
registerValidation in class ObjectInputStreamNotActiveExceptionInvalidObjectExceptionprotected final Class resolveClass(ObjectStreamClass v) throws IOException, ClassNotFoundException
IOExceptionClassNotFoundExceptionprotected final Object resolveObject(Object obj) throws IOException
resolveObject in class ObjectInputStreamIOExceptionpublic final int skipBytes(int len)
throws IOException
skipBytes in interface DataInputskipBytes in class ObjectInputStreamIOExceptionCopyright © 2018 JBoss by Red Hat. All rights reserved.