Package java.io
Class ObjectInputStream
- java.lang.Object
-
- java.io.InputStream
-
- java.io.ObjectInputStream
-
- All Implemented Interfaces:
DataInput,ObjectInput,ObjectStreamConstants
public class ObjectInputStream extends InputStream implements ObjectInput, ObjectStreamConstants
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classObjectInputStream.GetField
-
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 Modifier Constructor Description protectedObjectInputStream()ObjectInputStream(InputStream var0)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intavailable()voidclose()voiddefaultReadObject()protected booleanenableResolveObject(boolean var0)intread()intread(byte[] var0, int var1, int var2)booleanreadBoolean()bytereadByte()charreadChar()protected ObjectStreamClassreadClassDescriptor()doublereadDouble()ObjectInputStream.GetFieldreadFields()floatreadFloat()voidreadFully(byte[] var0)voidreadFully(byte[] var0, int var1, int var2)intreadInt()StringreadLine()longreadLong()ObjectreadObject()protected ObjectreadObjectOverride()shortreadShort()protected voidreadStreamHeader()intreadUnsignedByte()intreadUnsignedShort()StringreadUTF()voidregisterValidation(ObjectInputValidation var0, int var1)protected ClassresolveClass(ObjectStreamClass var0)protected ObjectresolveObject(Object var0)protected ClassresolveProxyClass(String[] var0)intskipBytes(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 Detail
-
ObjectInputStream
protected ObjectInputStream() throws IOException, SecurityException- Throws:
IOExceptionSecurityException
-
ObjectInputStream
public ObjectInputStream(InputStream var0) throws StreamCorruptedException, IOException
- Throws:
StreamCorruptedExceptionIOException
-
-
Method Detail
-
available
public int available() throws IOException- Specified by:
availablein interfaceObjectInput- Overrides:
availablein classInputStream- Throws:
IOException
-
close
public void close() throws IOException- Specified by:
closein interfaceObjectInput- Overrides:
closein classInputStream- Throws:
IOException
-
defaultReadObject
public void defaultReadObject() throws IOException, ClassNotFoundException, NotActiveException
-
enableResolveObject
protected boolean enableResolveObject(boolean var0) throws SecurityException- Throws:
SecurityException
-
read
public int read() throws IOException- Specified by:
readin interfaceObjectInput- Specified by:
readin classInputStream- Throws:
IOException
-
read
public int read(byte[] var0, int var1, int var2) throws IOException- Specified by:
readin interfaceObjectInput- Overrides:
readin classInputStream- Throws:
IOException
-
readBoolean
public boolean readBoolean() throws IOException- Specified by:
readBooleanin interfaceDataInput- Throws:
IOException
-
readByte
public byte readByte() throws IOException- Specified by:
readBytein interfaceDataInput- Throws:
IOException
-
readChar
public char readChar() throws IOException- Specified by:
readCharin interfaceDataInput- Throws:
IOException
-
readDouble
public double readDouble() throws IOException- Specified by:
readDoublein interfaceDataInput- Throws:
IOException
-
readFields
public ObjectInputStream.GetField readFields() throws IOException, ClassNotFoundException, NotActiveException
-
readFloat
public float readFloat() throws IOException- Specified by:
readFloatin interfaceDataInput- Throws:
IOException
-
readFully
public void readFully(byte[] var0) throws IOException- Specified by:
readFullyin interfaceDataInput- Throws:
IOException
-
readFully
public void readFully(byte[] var0, int var1, int var2) throws IOException- Specified by:
readFullyin interfaceDataInput- Throws:
IOException
-
readInt
public int readInt() throws IOException- Specified by:
readIntin interfaceDataInput- Throws:
IOException
-
readLine
public String readLine() throws IOException
- Specified by:
readLinein interfaceDataInput- Throws:
IOException
-
readLong
public long readLong() throws IOException- Specified by:
readLongin interfaceDataInput- Throws:
IOException
-
readClassDescriptor
protected ObjectStreamClass readClassDescriptor() throws IOException, ClassNotFoundException
- Throws:
IOExceptionClassNotFoundException
-
resolveProxyClass
protected Class resolveProxyClass(String[] var0) throws IOException, ClassNotFoundException
- Throws:
IOExceptionClassNotFoundException
-
readObject
public final Object readObject() throws OptionalDataException, ClassNotFoundException, IOException
- Specified by:
readObjectin interfaceObjectInput- Throws:
OptionalDataExceptionClassNotFoundExceptionIOException
-
readObjectOverride
protected Object readObjectOverride() throws OptionalDataException, ClassNotFoundException, IOException
-
readShort
public short readShort() throws IOException- Specified by:
readShortin interfaceDataInput- Throws:
IOException
-
readStreamHeader
protected void readStreamHeader() throws IOException, StreamCorruptedException- Throws:
IOExceptionStreamCorruptedException
-
readUnsignedByte
public int readUnsignedByte() throws IOException- Specified by:
readUnsignedBytein interfaceDataInput- Throws:
IOException
-
readUnsignedShort
public int readUnsignedShort() throws IOException- Specified by:
readUnsignedShortin interfaceDataInput- Throws:
IOException
-
readUTF
public String readUTF() throws IOException
- Specified by:
readUTFin interfaceDataInput- Throws:
IOException
-
registerValidation
public void registerValidation(ObjectInputValidation var0, int var1) throws NotActiveException, InvalidObjectException
-
resolveClass
protected Class resolveClass(ObjectStreamClass var0) throws IOException, ClassNotFoundException
- Throws:
IOExceptionClassNotFoundException
-
resolveObject
protected Object resolveObject(Object var0) throws IOException
- Throws:
IOException
-
skipBytes
public int skipBytes(int var0) throws IOException- Specified by:
skipBytesin interfaceDataInput- Throws:
IOException
-
-