public class IIOPInputStream extends InputStreamHook
ObjectInputStream.GetField| Modifier and Type | Field and Description |
|---|---|
static TypeCode |
kRemoteTypeCode |
static TypeCode |
kValueTypeCode |
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() |
ValueHandler |
getValueHandler() |
void |
increaseRecursionDepth() |
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.
|
short |
readShort() |
int |
readUnsignedByte() |
int |
readUnsignedShort() |
String |
readUTF() |
void |
registerValidation(ObjectInputValidation obj,
int prio) |
void |
reset() |
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, readFieldsreadObject, readUnsharedread, skipequals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitread, skippublic static final TypeCode kRemoteTypeCode
public static final TypeCode kValueTypeCode
public IIOPInputStream()
throws IOException
IOExceptionpublic static void setTestFVDFlag(boolean val)
public final void setOrbStream(InputStream os)
public final InputStream getOrbStream()
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
public final void defaultReadObjectDelegate()
defaultReadObjectDelegate in class InputStreamHookClassNotFoundException - 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 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 ObjectInputStreamIOExceptionpublic final int readUnsignedByte()
throws IOException
readUnsignedByte in interface DataInputreadUnsignedByte in class ObjectInputStreamIOExceptionpublic final int readUnsignedShort()
throws IOException
readUnsignedShort in interface DataInputreadUnsignedShort in class ObjectInputStreamIOExceptionpublic 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 ObjectInputStreamNotActiveExceptionInvalidObjectExceptionpublic final int skipBytes(int len)
throws IOException
skipBytes in interface DataInputskipBytes in class ObjectInputStreamIOExceptionCopyright © 2020 ADDC Infotech GmbH. All rights reserved.