Package java.io
Class ObjectInputStream
java.lang.Object
java.io.InputStream
java.io.ObjectInputStream
- All Implemented Interfaces:
DataInput
,ObjectInput
,ObjectStreamConstants
-
Nested Class Summary
Nested Classes -
Field Summary
Fields inherited from interface java.io.ObjectStreamConstants
baseWireHandle, PROTOCOL_VERSION_1, PROTOCOL_VERSION_2, SC_BLOCK_DATA, 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_EXCEPTION, TC_LONGSTRING, TC_MAX, TC_NULL, TC_OBJECT, TC_PROXYCLASSDESC, TC_REFERENCE, TC_RESET, TC_STRING
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionint
void
close()
void
protected boolean
enableResolveObject
(boolean var0) int
read()
int
read
(byte[] var0, int var1, int var2) boolean
byte
readByte()
char
readChar()
protected ObjectStreamClass
double
float
void
readFully
(byte[] var0) void
readFully
(byte[] var0, int var1, int var2) int
readInt()
readLine()
long
readLong()
final Object
protected Object
short
protected void
int
int
readUTF()
void
registerValidation
(ObjectInputValidation var0, int var1) protected Class
protected Object
resolveObject
(Object var0) protected Class
resolveProxyClass
(String[] var0) int
skipBytes
(int var0) Methods inherited from class java.io.InputStream
mark, markSupported, read, reset, skip
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.io.ObjectInput
read, skip
-
Constructor Details
-
ObjectInputStream
- Throws:
IOException
SecurityException
-
ObjectInputStream
- Throws:
StreamCorruptedException
IOException
-
-
Method Details
-
available
- Specified by:
available
in interfaceObjectInput
- Overrides:
available
in classInputStream
- Throws:
IOException
-
close
- Specified by:
close
in interfaceObjectInput
- Overrides:
close
in classInputStream
- Throws:
IOException
-
defaultReadObject
-
enableResolveObject
- Throws:
SecurityException
-
read
- Specified by:
read
in interfaceObjectInput
- Specified by:
read
in classInputStream
- Throws:
IOException
-
read
- Specified by:
read
in interfaceObjectInput
- Overrides:
read
in classInputStream
- Throws:
IOException
-
readBoolean
- Specified by:
readBoolean
in interfaceDataInput
- Throws:
IOException
-
readByte
- Specified by:
readByte
in interfaceDataInput
- Throws:
IOException
-
readChar
- Specified by:
readChar
in interfaceDataInput
- Throws:
IOException
-
readDouble
- Specified by:
readDouble
in interfaceDataInput
- Throws:
IOException
-
readFields
public ObjectInputStream.GetField readFields() throws IOException, ClassNotFoundException, NotActiveException -
readFloat
- Specified by:
readFloat
in interfaceDataInput
- Throws:
IOException
-
readFully
- Specified by:
readFully
in interfaceDataInput
- Throws:
IOException
-
readFully
- Specified by:
readFully
in interfaceDataInput
- Throws:
IOException
-
readInt
- Specified by:
readInt
in interfaceDataInput
- Throws:
IOException
-
readLine
- Specified by:
readLine
in interfaceDataInput
- Throws:
IOException
-
readLong
- Specified by:
readLong
in interfaceDataInput
- Throws:
IOException
-
readClassDescriptor
- Throws:
IOException
ClassNotFoundException
-
resolveProxyClass
- Throws:
IOException
ClassNotFoundException
-
readObject
- Specified by:
readObject
in interfaceObjectInput
- Throws:
OptionalDataException
ClassNotFoundException
IOException
-
readObjectOverride
protected Object readObjectOverride() throws OptionalDataException, ClassNotFoundException, IOException -
readShort
- Specified by:
readShort
in interfaceDataInput
- Throws:
IOException
-
readStreamHeader
- Throws:
IOException
StreamCorruptedException
-
readUnsignedByte
- Specified by:
readUnsignedByte
in interfaceDataInput
- Throws:
IOException
-
readUnsignedShort
- Specified by:
readUnsignedShort
in interfaceDataInput
- Throws:
IOException
-
readUTF
- Specified by:
readUTF
in interfaceDataInput
- Throws:
IOException
-
registerValidation
public void registerValidation(ObjectInputValidation var0, int var1) throws NotActiveException, InvalidObjectException -
resolveClass
- Throws:
IOException
ClassNotFoundException
-
resolveObject
- Throws:
IOException
-
skipBytes
- Specified by:
skipBytes
in interfaceDataInput
- Throws:
IOException
-