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.
-
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 TypeMethodDescriptionintDeprecated.voidclose()Deprecated.voidmark(int readlimit) Deprecated.booleanDeprecated.intread()Deprecated.final intread(byte[] b) Deprecated.final intread(byte[] b, int off, int len) Deprecated.final booleanDeprecated.final bytereadByte()Deprecated.final charreadChar()Deprecated.final doubleDeprecated.final floatDeprecated.final voidreadFully(byte[] b) Deprecated.final voidreadFully(byte[] b, int off, int len) Deprecated.final intreadInt()Deprecated.final StringreadLine()Deprecated.UseBufferedReader.readLine()instead.final longreadLong()Deprecated.Deprecated.final shortDeprecated.final intDeprecated.final intDeprecated.final StringreadUTF()Deprecated.voidreset()Deprecated.longskip(long n) Deprecated.final intskipBytes(int n) Deprecated.Methods inherited from class InputStream
readAllBytes, readNBytes, transferTo
-
Constructor Details
-
ObjectDecoderInputStream
Deprecated.Creates a newObjectInput.- Parameters:
in- theInputStreamwhere the serialized form will be read from
-
ObjectDecoderInputStream
Deprecated.Creates a newObjectInput.- Parameters:
in- theInputStreamwhere the serialized form will be read fromclassLoader- theClassLoaderwhich will load the class of the serialized object
-
ObjectDecoderInputStream
Deprecated.Creates a newObjectInput.- Parameters:
in- theInputStreamwhere 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, aStreamCorruptedExceptionwill be raised.
-
ObjectDecoderInputStream
Deprecated.Creates a newObjectInput.- Parameters:
in- theInputStreamwhere the serialized form will be read fromclassLoader- theClassLoaderwhich 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, aStreamCorruptedExceptionwill be raised.
-
-
Method Details
-
readObject
Deprecated.- Specified by:
readObjectin interfaceObjectInput- Throws:
ClassNotFoundExceptionIOException
-
available
Deprecated.- Specified by:
availablein interfaceObjectInput- Overrides:
availablein classInputStream- Throws:
IOException
-
close
Deprecated.- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Specified by:
closein interfaceObjectInput- Overrides:
closein classInputStream- Throws:
IOException
-
mark
-
markSupported
-
read
Deprecated.- Specified by:
readin interfaceObjectInput- Specified by:
readin classInputStream- Throws:
IOException
-
read
Deprecated.- Specified by:
readin interfaceObjectInput- Overrides:
readin classInputStream- Throws:
IOException
-
read
Deprecated.- Specified by:
readin interfaceObjectInput- Overrides:
readin classInputStream- Throws:
IOException
-
readBoolean
Deprecated.- Specified by:
readBooleanin interfaceDataInput- Throws:
IOException
-
readByte
Deprecated.- Specified by:
readBytein interfaceDataInput- Throws:
IOException
-
readChar
Deprecated.- Specified by:
readCharin interfaceDataInput- Throws:
IOException
-
readDouble
Deprecated.- Specified by:
readDoublein interfaceDataInput- Throws:
IOException
-
readFloat
Deprecated.- Specified by:
readFloatin interfaceDataInput- Throws:
IOException
-
readFully
Deprecated.- Specified by:
readFullyin interfaceDataInput- Throws:
IOException
-
readFully
Deprecated.- Specified by:
readFullyin interfaceDataInput- Throws:
IOException
-
readInt
Deprecated.- Specified by:
readIntin interfaceDataInput- Throws:
IOException
-
readLine
Deprecated.UseBufferedReader.readLine()instead.- Specified by:
readLinein interfaceDataInput- Throws:
IOException
-
readLong
Deprecated.- Specified by:
readLongin interfaceDataInput- Throws:
IOException
-
readShort
Deprecated.- Specified by:
readShortin interfaceDataInput- Throws:
IOException
-
readUnsignedByte
Deprecated.- Specified by:
readUnsignedBytein interfaceDataInput- Throws:
IOException
-
readUnsignedShort
Deprecated.- Specified by:
readUnsignedShortin interfaceDataInput- Throws:
IOException
-
readUTF
Deprecated.- Specified by:
readUTFin interfaceDataInput- Throws:
IOException
-
reset
Deprecated.- Overrides:
resetin classInputStream- Throws:
IOException
-
skip
Deprecated.- Specified by:
skipin interfaceObjectInput- Overrides:
skipin classInputStream- Throws:
IOException
-
skipBytes
Deprecated.- Specified by:
skipBytesin interfaceDataInput- Throws:
IOException
-