@Deprecated
public class ObjectDecoderInputStream
extends java.io.InputStream
implements java.io.ObjectInput
ObjectInput which is interoperable with ObjectEncoder
and ObjectEncoderOutputStream.
Security: serialization can be a security liability, and should not be used without defining a list of classes that are allowed to be desirialized. Such a list can be specified with the jdk.serialFilter system property, for instance. See the serialization filtering article for more information.
| 构造器和说明 |
|---|
ObjectDecoderInputStream(java.io.InputStream in)
已过时。
Creates a new
ObjectInput. |
ObjectDecoderInputStream(java.io.InputStream in,
java.lang.ClassLoader classLoader)
已过时。
Creates a new
ObjectInput. |
ObjectDecoderInputStream(java.io.InputStream in,
java.lang.ClassLoader classLoader,
int maxObjectSize)
已过时。
Creates a new
ObjectInput. |
ObjectDecoderInputStream(java.io.InputStream in,
int maxObjectSize)
已过时。
Creates a new
ObjectInput. |
| 限定符和类型 | 方法和说明 |
|---|---|
int |
available()
已过时。
|
void |
close()
已过时。
|
void |
mark(int readlimit)
已过时。
|
boolean |
markSupported()
已过时。
|
int |
read()
已过时。
|
int |
read(byte[] b)
已过时。
|
int |
read(byte[] b,
int off,
int len)
已过时。
|
boolean |
readBoolean()
已过时。
|
byte |
readByte()
已过时。
|
char |
readChar()
已过时。
|
double |
readDouble()
已过时。
|
float |
readFloat()
已过时。
|
void |
readFully(byte[] b)
已过时。
|
void |
readFully(byte[] b,
int off,
int len)
已过时。
|
int |
readInt()
已过时。
|
java.lang.String |
readLine()
已过时。
Use
BufferedReader.readLine() instead. |
long |
readLong()
已过时。
|
java.lang.Object |
readObject()
已过时。
|
short |
readShort()
已过时。
|
int |
readUnsignedByte()
已过时。
|
int |
readUnsignedShort()
已过时。
|
java.lang.String |
readUTF()
已过时。
|
void |
reset()
已过时。
|
long |
skip(long n)
已过时。
|
int |
skipBytes(int n)
已过时。
|
public ObjectDecoderInputStream(java.io.InputStream in)
ObjectInput.in - the InputStream where the serialized form will be
read frompublic ObjectDecoderInputStream(java.io.InputStream in,
java.lang.ClassLoader classLoader)
ObjectInput.in - the InputStream where the serialized form will be
read fromclassLoader - the ClassLoader which will load the class of the
serialized objectpublic ObjectDecoderInputStream(java.io.InputStream in,
int maxObjectSize)
ObjectInput.in - the InputStream where the serialized form will be
read frommaxObjectSize - the maximum byte length of the serialized object. if the length
of the received object is greater than this value,
a StreamCorruptedException will be raised.public ObjectDecoderInputStream(java.io.InputStream in,
java.lang.ClassLoader classLoader,
int maxObjectSize)
ObjectInput.in - the InputStream where the serialized form will be
read fromclassLoader - the ClassLoader which will load the class of the
serialized objectmaxObjectSize - the maximum byte length of the serialized object. if the length
of the received object is greater than this value,
a StreamCorruptedException will be raised.public java.lang.Object readObject()
throws java.lang.ClassNotFoundException,
java.io.IOException
readObject 在接口中 java.io.ObjectInputjava.lang.ClassNotFoundExceptionjava.io.IOExceptionpublic int available()
throws java.io.IOException
available 在接口中 java.io.ObjectInputavailable 在类中 java.io.InputStreamjava.io.IOExceptionpublic void close()
throws java.io.IOException
close 在接口中 java.io.Closeableclose 在接口中 java.io.ObjectInputclose 在接口中 java.lang.AutoCloseableclose 在类中 java.io.InputStreamjava.io.IOExceptionpublic void mark(int readlimit)
mark 在类中 java.io.InputStreampublic boolean markSupported()
markSupported 在类中 java.io.InputStreampublic int read()
throws java.io.IOException
read 在接口中 java.io.ObjectInputread 在类中 java.io.InputStreamjava.io.IOExceptionpublic final int read(byte[] b,
int off,
int len)
throws java.io.IOException
read 在接口中 java.io.ObjectInputread 在类中 java.io.InputStreamjava.io.IOExceptionpublic final int read(byte[] b)
throws java.io.IOException
read 在接口中 java.io.ObjectInputread 在类中 java.io.InputStreamjava.io.IOExceptionpublic final boolean readBoolean()
throws java.io.IOException
readBoolean 在接口中 java.io.DataInputjava.io.IOExceptionpublic final byte readByte()
throws java.io.IOException
readByte 在接口中 java.io.DataInputjava.io.IOExceptionpublic final char readChar()
throws java.io.IOException
readChar 在接口中 java.io.DataInputjava.io.IOExceptionpublic final double readDouble()
throws java.io.IOException
readDouble 在接口中 java.io.DataInputjava.io.IOExceptionpublic final float readFloat()
throws java.io.IOException
readFloat 在接口中 java.io.DataInputjava.io.IOExceptionpublic final void readFully(byte[] b,
int off,
int len)
throws java.io.IOException
readFully 在接口中 java.io.DataInputjava.io.IOExceptionpublic final void readFully(byte[] b)
throws java.io.IOException
readFully 在接口中 java.io.DataInputjava.io.IOExceptionpublic final int readInt()
throws java.io.IOException
readInt 在接口中 java.io.DataInputjava.io.IOException@Deprecated
public final java.lang.String readLine()
throws java.io.IOException
BufferedReader.readLine() instead.readLine 在接口中 java.io.DataInputjava.io.IOExceptionpublic final long readLong()
throws java.io.IOException
readLong 在接口中 java.io.DataInputjava.io.IOExceptionpublic final short readShort()
throws java.io.IOException
readShort 在接口中 java.io.DataInputjava.io.IOExceptionpublic final int readUnsignedByte()
throws java.io.IOException
readUnsignedByte 在接口中 java.io.DataInputjava.io.IOExceptionpublic final int readUnsignedShort()
throws java.io.IOException
readUnsignedShort 在接口中 java.io.DataInputjava.io.IOExceptionpublic final java.lang.String readUTF()
throws java.io.IOException
readUTF 在接口中 java.io.DataInputjava.io.IOExceptionpublic void reset()
throws java.io.IOException
reset 在类中 java.io.InputStreamjava.io.IOExceptionpublic long skip(long n)
throws java.io.IOException
skip 在接口中 java.io.ObjectInputskip 在类中 java.io.InputStreamjava.io.IOExceptionpublic final int skipBytes(int n)
throws java.io.IOException
skipBytes 在接口中 java.io.DataInputjava.io.IOException