Class ObjectDecoderInputStream
java.lang.Object
java.io.InputStream
io.netty.handler.codec.serialization.ObjectDecoderInputStream
- All Implemented Interfaces:
Closeable
,DataInput
,ObjectInput
,AutoCloseable
Deprecated.
This class has been deprecated with no replacement,
because serialization can be a security liability
An
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.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final ClassResolver
Deprecated.private final DataInputStream
Deprecated.private final int
Deprecated. -
Constructor Summary
ConstructorsConstructorDescriptionDeprecated.Creates a newObjectInput
.ObjectDecoderInputStream
(InputStream in, int maxObjectSize) Deprecated.Creates a newObjectInput
.ObjectDecoderInputStream
(InputStream in, ClassLoader classLoader) Deprecated.Creates a newObjectInput
.ObjectDecoderInputStream
(InputStream in, ClassLoader classLoader, int maxObjectSize) Deprecated.Creates a newObjectInput
. -
Method Summary
Modifier and TypeMethodDescriptionint
Deprecated.void
close()
Deprecated.void
mark
(int readlimit) Deprecated.boolean
Deprecated.int
read()
Deprecated.final int
read
(byte[] b) Deprecated.final int
read
(byte[] b, int off, int len) Deprecated.final boolean
Deprecated.final byte
readByte()
Deprecated.final char
readChar()
Deprecated.final double
Deprecated.final float
Deprecated.final void
readFully
(byte[] b) Deprecated.final void
readFully
(byte[] b, int off, int len) Deprecated.final int
readInt()
Deprecated.final String
readLine()
Deprecated.UseBufferedReader.readLine()
instead.final long
readLong()
Deprecated.Deprecated.final short
Deprecated.final int
Deprecated.final int
Deprecated.final String
readUTF()
Deprecated.void
reset()
Deprecated.long
skip
(long n) Deprecated.final int
skipBytes
(int n) Deprecated.Methods inherited from class java.io.InputStream
nullInputStream, readAllBytes, readNBytes, readNBytes, skipNBytes, transferTo
-
Field Details
-
in
Deprecated. -
maxObjectSize
private final int maxObjectSizeDeprecated. -
classResolver
Deprecated.
-
-
Constructor Details
-
ObjectDecoderInputStream
Deprecated.Creates a newObjectInput
.- Parameters:
in
- theInputStream
where the serialized form will be read from
-
ObjectDecoderInputStream
Deprecated.Creates a newObjectInput
.- Parameters:
in
- theInputStream
where the serialized form will be read fromclassLoader
- theClassLoader
which will load the class of the serialized object
-
ObjectDecoderInputStream
Deprecated.Creates a newObjectInput
.- Parameters:
in
- theInputStream
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, aStreamCorruptedException
will be raised.
-
ObjectDecoderInputStream
Deprecated.Creates a newObjectInput
.- Parameters:
in
- theInputStream
where the serialized form will be read fromclassLoader
- theClassLoader
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, aStreamCorruptedException
will be raised.
-
-
Method Details
-
readObject
Deprecated.- Specified by:
readObject
in interfaceObjectInput
- Throws:
ClassNotFoundException
IOException
-
available
Deprecated.- Specified by:
available
in interfaceObjectInput
- Overrides:
available
in classInputStream
- Throws:
IOException
-
close
Deprecated.- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Specified by:
close
in interfaceObjectInput
- Overrides:
close
in classInputStream
- Throws:
IOException
-
mark
public void mark(int readlimit) Deprecated.- Overrides:
mark
in classInputStream
-
markSupported
public boolean markSupported()Deprecated.- Overrides:
markSupported
in classInputStream
-
read
Deprecated.- Specified by:
read
in interfaceObjectInput
- Specified by:
read
in classInputStream
- Throws:
IOException
-
read
Deprecated.- Specified by:
read
in interfaceObjectInput
- Overrides:
read
in classInputStream
- Throws:
IOException
-
read
Deprecated.- Specified by:
read
in interfaceObjectInput
- Overrides:
read
in classInputStream
- Throws:
IOException
-
readBoolean
Deprecated.- Specified by:
readBoolean
in interfaceDataInput
- Throws:
IOException
-
readByte
Deprecated.- Specified by:
readByte
in interfaceDataInput
- Throws:
IOException
-
readChar
Deprecated.- Specified by:
readChar
in interfaceDataInput
- Throws:
IOException
-
readDouble
Deprecated.- Specified by:
readDouble
in interfaceDataInput
- Throws:
IOException
-
readFloat
Deprecated.- Specified by:
readFloat
in interfaceDataInput
- Throws:
IOException
-
readFully
Deprecated.- Specified by:
readFully
in interfaceDataInput
- Throws:
IOException
-
readFully
Deprecated.- Specified by:
readFully
in interfaceDataInput
- Throws:
IOException
-
readInt
Deprecated.- Specified by:
readInt
in interfaceDataInput
- Throws:
IOException
-
readLine
Deprecated.UseBufferedReader.readLine()
instead.- Specified by:
readLine
in interfaceDataInput
- Throws:
IOException
-
readLong
Deprecated.- Specified by:
readLong
in interfaceDataInput
- Throws:
IOException
-
readShort
Deprecated.- Specified by:
readShort
in interfaceDataInput
- Throws:
IOException
-
readUnsignedByte
Deprecated.- Specified by:
readUnsignedByte
in interfaceDataInput
- Throws:
IOException
-
readUnsignedShort
Deprecated.- Specified by:
readUnsignedShort
in interfaceDataInput
- Throws:
IOException
-
readUTF
Deprecated.- Specified by:
readUTF
in interfaceDataInput
- Throws:
IOException
-
reset
Deprecated.- Overrides:
reset
in classInputStream
- Throws:
IOException
-
skip
Deprecated.- Specified by:
skip
in interfaceObjectInput
- Overrides:
skip
in classInputStream
- Throws:
IOException
-
skipBytes
Deprecated.- Specified by:
skipBytes
in interfaceDataInput
- Throws:
IOException
-