DataInput
, ObjectInput
, ObjectStreamConstants
public class ObjectInputStream extends InputStream implements ObjectInput, ObjectStreamConstants
Modifier and Type | Class | 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 | Description |
---|---|---|
protected |
ObjectInputStream() |
|
|
ObjectInputStream(InputStream var0) |
Modifier and Type | Method | 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, skip
protected ObjectInputStream() throws IOException
IOException
public ObjectInputStream(InputStream var0) throws IOException
IOException
public void defaultReadObject() throws IOException, ClassNotFoundException
IOException
ClassNotFoundException
protected boolean enableResolveObject(boolean var0)
public int read() throws IOException
read
in interface ObjectInput
read
in class InputStream
IOException
public boolean readBoolean() throws IOException
readBoolean
in interface DataInput
IOException
public byte readByte() throws IOException
readByte
in interface DataInput
IOException
public char readChar() throws IOException
readChar
in interface DataInput
IOException
protected ObjectStreamClass readClassDescriptor() throws IOException, ClassNotFoundException
IOException
ClassNotFoundException
public double readDouble() throws IOException
readDouble
in interface DataInput
IOException
public ObjectInputStream.GetField readFields() throws IOException, ClassNotFoundException
IOException
ClassNotFoundException
public float readFloat() throws IOException
readFloat
in interface DataInput
IOException
public void readFully(byte[] var0) throws IOException
readFully
in interface DataInput
IOException
public void readFully(byte[] var0, int var1, int var2) throws IOException
readFully
in interface DataInput
IOException
public int readInt() throws IOException
readInt
in interface DataInput
IOException
public String readLine() throws IOException
readLine
in interface DataInput
IOException
public long readLong() throws IOException
readLong
in interface DataInput
IOException
public final Object readObject() throws IOException, ClassNotFoundException
readObject
in interface ObjectInput
IOException
ClassNotFoundException
protected Object readObjectOverride() throws IOException, ClassNotFoundException
IOException
ClassNotFoundException
public short readShort() throws IOException
readShort
in interface DataInput
IOException
protected void readStreamHeader() throws IOException
IOException
public String readUTF() throws IOException
readUTF
in interface DataInput
IOException
public Object readUnshared() throws IOException, ClassNotFoundException
IOException
ClassNotFoundException
public int readUnsignedByte() throws IOException
readUnsignedByte
in interface DataInput
IOException
public int readUnsignedShort() throws IOException
readUnsignedShort
in interface DataInput
IOException
public void registerValidation(ObjectInputValidation var0, int var1) throws InvalidObjectException, NotActiveException
protected Class resolveClass(ObjectStreamClass var0) throws IOException, ClassNotFoundException
IOException
ClassNotFoundException
protected Object resolveObject(Object var0) throws IOException
IOException
protected Class resolveProxyClass(String[] var0) throws IOException, ClassNotFoundException
IOException
ClassNotFoundException
public int skipBytes(int var0) throws IOException
skipBytes
in interface DataInput
IOException