public class ObjectInputStream extends InputStream implements ObjectInput, ObjectStreamConstants
| Modifier and Type | Class and Description |
|---|---|
static class |
ObjectInputStream.GetField |
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| Modifier | Constructor and Description |
|---|---|
protected |
ObjectInputStream() |
|
ObjectInputStream(InputStream var0) |
| Modifier and Type | Method and Description |
|---|---|
void |
defaultReadObject() |
protected boolean |
enableResolveObject(boolean var0) |
int |
read() |
boolean |
readBoolean() |
byte |
readByte() |
char |
readChar() |
protected ObjectStreamClass |
readClassDescriptor() |
double |
readDouble() |
ObjectInputStream.GetField |
readFields() |
float |
readFloat() |
void |
readFully(byte[] var0) |
void |
readFully(byte[] var0,
int var1,
int var2) |
int |
readInt() |
String |
readLine()
Deprecated.
|
long |
readLong() |
Object |
readObject() |
protected Object |
readObjectOverride() |
short |
readShort() |
protected void |
readStreamHeader() |
Object |
readUnshared() |
int |
readUnsignedByte() |
int |
readUnsignedShort() |
String |
readUTF() |
void |
registerValidation(ObjectInputValidation var0,
int var1) |
protected Class |
resolveClass(ObjectStreamClass var0) |
protected Object |
resolveObject(Object var0) |
protected Class |
resolveProxyClass(String[] var0) |
int |
skipBytes(int var0) |
available, close, mark, markSupported, read, read, reset, skipprotected ObjectInputStream()
throws IOException
IOExceptionpublic ObjectInputStream(InputStream var0) throws IOException
IOExceptionpublic void defaultReadObject()
throws IOException,
ClassNotFoundException
IOExceptionClassNotFoundExceptionprotected boolean enableResolveObject(boolean var0)
public int read()
throws IOException
read in interface ObjectInputread in class InputStreamIOExceptionpublic boolean readBoolean()
throws IOException
readBoolean in interface DataInputIOExceptionpublic byte readByte()
throws IOException
readByte in interface DataInputIOExceptionpublic char readChar()
throws IOException
readChar in interface DataInputIOExceptionprotected ObjectStreamClass readClassDescriptor() throws IOException, ClassNotFoundException
IOExceptionClassNotFoundExceptionpublic double readDouble()
throws IOException
readDouble in interface DataInputIOExceptionpublic ObjectInputStream.GetField readFields() throws IOException, ClassNotFoundException
IOExceptionClassNotFoundExceptionpublic float readFloat()
throws IOException
readFloat in interface DataInputIOExceptionpublic void readFully(byte[] var0)
throws IOException
readFully in interface DataInputIOExceptionpublic void readFully(byte[] var0,
int var1,
int var2)
throws IOException
readFully in interface DataInputIOExceptionpublic int readInt()
throws IOException
readInt in interface DataInputIOExceptionpublic String readLine() throws IOException
readLine in interface DataInputIOExceptionpublic long readLong()
throws IOException
readLong in interface DataInputIOExceptionpublic final Object readObject() throws IOException, ClassNotFoundException
readObject in interface ObjectInputIOExceptionClassNotFoundExceptionprotected Object readObjectOverride() throws IOException, ClassNotFoundException
IOExceptionClassNotFoundExceptionpublic short readShort()
throws IOException
readShort in interface DataInputIOExceptionprotected void readStreamHeader()
throws IOException
IOExceptionpublic String readUTF() throws IOException
readUTF in interface DataInputIOExceptionpublic Object readUnshared() throws IOException, ClassNotFoundException
IOExceptionClassNotFoundExceptionpublic int readUnsignedByte()
throws IOException
readUnsignedByte in interface DataInputIOExceptionpublic int readUnsignedShort()
throws IOException
readUnsignedShort in interface DataInputIOExceptionpublic void registerValidation(ObjectInputValidation var0, int var1) throws InvalidObjectException, NotActiveException
protected Class resolveClass(ObjectStreamClass var0) throws IOException, ClassNotFoundException
IOExceptionClassNotFoundExceptionprotected Object resolveObject(Object var0) throws IOException
IOExceptionprotected Class resolveProxyClass(String[] var0) throws IOException, ClassNotFoundException
IOExceptionClassNotFoundExceptionpublic int skipBytes(int var0)
throws IOException
skipBytes in interface DataInputIOException