public class IIOPInputStream extends InputStreamHook
InputStreamHook.DefaultState, InputStreamHook.InReadObjectDefaultsSentState, InputStreamHook.InReadObjectNoMoreOptionalDataState, InputStreamHook.InReadObjectOptionalDataState, InputStreamHook.InReadObjectPastDefaultsRemoteDidNotUseWOState, InputStreamHook.InReadObjectRemoteDidNotUseWriteObjectState, InputStreamHook.NoReadObjectDefaultsSentState, InputStreamHook.ReadObjectState
ObjectInputStream.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, readObjectState
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
Constructor and Description |
---|
IIOPInputStream()
Dummy constructor; passes upper stream a dummy stream;
|
Modifier and Type | Method and Description |
---|---|
int |
available() |
void |
close() |
int |
decreaseRecursionDepth() |
void |
defaultReadObjectDelegate()
Override the actions of the final method "defaultReadObject()" in ObjectInputStream.
|
boolean |
enableResolveObjectDelegate(boolean enable)
Override the actions of the final method "enableResolveObject()" in ObjectInputStream.
|
InputStream |
getOrbStream() |
CodeBase |
getSender() |
protected byte |
getStreamFormatVersion() |
ValueHandler |
getValueHandler() |
void |
increaseRecursionDepth() |
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 |
setOrbStream(InputStream os) |
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, throwOptionalDataIncompatibleException
enableResolveObject, readClassDescriptor, readObject, readUnshared, resolveClass, resolveProxyClass
read, skip
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
read, skip
public static final TypeCode kRemoteTypeCode
public static final TypeCode kValueTypeCode
public IIOPInputStream() throws IOException
IOException
protected byte getStreamFormatVersion()
getStreamFormatVersion
in class InputStreamHook
public static void setTestFVDFlag(boolean val)
public final void setOrbStream(InputStream os)
public final InputStream getOrbStream()
getOrbStream
in class InputStreamHook
public final void setSender(CodeBase cb)
public final CodeBase getSender()
public final void setValueHandler(ValueHandler vh)
public final ValueHandler getValueHandler()
public final void increaseRecursionDepth()
public final int decreaseRecursionDepth()
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 ObjectInputStream
OptionalDataException
ClassNotFoundException
IOException
#ObjectInputStream()
,
ObjectInputStream.readObject()
public final void defaultReadObjectDelegate()
defaultReadObjectDelegate
in class InputStreamHook
ClassNotFoundException
- if the class of a serialized object could not be found.IOException
- if an I/O error occurs.NotActiveException
- if the stream is not currently reading objects.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 InputStream
public final boolean markSupported()
markSupported
in class InputStream
public final void reset() throws IOException
reset
in class InputStream
IOException
public final int available() throws IOException
available
in interface ObjectInput
available
in class ObjectInputStream
IOException
public final void close() throws IOException
close
in interface Closeable
close
in interface ObjectInput
close
in interface AutoCloseable
close
in class ObjectInputStream
IOException
public final int read() throws IOException
read
in interface ObjectInput
read
in class ObjectInputStream
IOException
public final int read(byte[] data, int offset, int length) throws IOException
read
in interface ObjectInput
read
in class ObjectInputStream
IOException
public final boolean readBoolean() throws IOException
readBoolean
in interface DataInput
readBoolean
in class ObjectInputStream
IOException
public final byte readByte() throws IOException
readByte
in interface DataInput
readByte
in class ObjectInputStream
IOException
public final char readChar() throws IOException
readChar
in interface DataInput
readChar
in class ObjectInputStream
IOException
public final double readDouble() throws IOException
readDouble
in interface DataInput
readDouble
in class ObjectInputStream
IOException
public final float readFloat() throws IOException
readFloat
in interface DataInput
readFloat
in class ObjectInputStream
IOException
public final void readFully(byte[] data) throws IOException
readFully
in interface DataInput
readFully
in class ObjectInputStream
IOException
public final void readFully(byte[] data, int offset, int size) throws IOException
readFully
in interface DataInput
readFully
in class ObjectInputStream
IOException
public final int readInt() throws IOException
readInt
in interface DataInput
readInt
in class ObjectInputStream
IOException
public final String readLine() throws IOException
readLine
in interface DataInput
readLine
in class ObjectInputStream
IOException
public final long readLong() throws IOException
readLong
in interface DataInput
readLong
in class ObjectInputStream
IOException
public final short readShort() throws IOException
readShort
in interface DataInput
readShort
in class ObjectInputStream
IOException
protected final void readStreamHeader() throws IOException, StreamCorruptedException
readStreamHeader
in class ObjectInputStream
IOException
StreamCorruptedException
public final int readUnsignedByte() throws IOException
readUnsignedByte
in interface DataInput
readUnsignedByte
in class ObjectInputStream
IOException
public final int readUnsignedShort() throws IOException
readUnsignedShort
in interface DataInput
readUnsignedShort
in class ObjectInputStream
IOException
protected String internalReadUTF(InputStream stream)
public final String readUTF() throws IOException
readUTF
in interface DataInput
readUTF
in class ObjectInputStream
IOException
public final void registerValidation(ObjectInputValidation obj, int prio) throws NotActiveException, InvalidObjectException
registerValidation
in class ObjectInputStream
NotActiveException
InvalidObjectException
protected final Class<?> resolveClass(ObjectStreamClass v) throws IOException, ClassNotFoundException
IOException
ClassNotFoundException
protected final Object resolveObject(Object obj) throws IOException
resolveObject
in class ObjectInputStream
IOException
public final int skipBytes(int len) throws IOException
skipBytes
in interface DataInput
skipBytes
in class ObjectInputStream
IOException
Copyright © 2018 JBoss by Red Hat. All rights reserved.