GeezerVison is showing netty.io — ObjectDecoderInputStream (Netty API Reference (4.1.141.Final))
Class 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.
-
Constructor Summary
Constructors
-
Method Summary
Modifier and Type
Method
Description
int
void
void
boolean
int
final int
final int
read(byte[] b,
int off,
int len)
final boolean
final byte
final char
final double
final float
final void
final void
final int
final long
final short
final int
final int
void
long
final int
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
ObjectDecoderInputStream
Deprecated.
- Parameters:
in - the InputStream where the serialized form will be
read from
-
ObjectDecoderInputStream
Deprecated.
- Parameters:
in - the InputStream where the serialized form will be
read from
classLoader - the ClassLoader which will load the class of the
serialized object
-
ObjectDecoderInputStream
public ObjectDecoderInputStream(InputStream in,
int maxObjectSize)
Deprecated.
- Parameters:
in - the InputStream where the serialized form will be
read from
maxObjectSize - 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.
-
ObjectDecoderInputStream
Deprecated.
- Parameters:
in - the InputStream where the serialized form will be
read from
classLoader - the ClassLoader which will load the class of the
serialized object
maxObjectSize - 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.
-
Method Details
-
-
-
-
mark
public void mark(int readlimit)
Deprecated.
- Overrides:
mark in class InputStream
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
|