Class ObjectDecoderInputStream
java.lang.Object
java.io.InputStream
org.jboss.netty.handler.codec.serialization.ObjectDecoderInputStream
- All Implemented Interfaces:
Closeable, DataInput, ObjectInput, AutoCloseable
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final ClassResolverprivate final DataInputStreamprivate final int -
Constructor Summary
ConstructorsConstructorDescriptionCreates a newObjectInput.ObjectDecoderInputStream(InputStream in, int maxObjectSize) Creates a newObjectInput.ObjectDecoderInputStream(InputStream in, ClassLoader classLoader) Creates a newObjectInput.ObjectDecoderInputStream(InputStream in, ClassLoader classLoader, int maxObjectSize) Creates a newObjectInput. -
Method Summary
Modifier and TypeMethodDescriptionintvoidclose()voidmark(int readlimit) booleanintread()final intread(byte[] b) final intread(byte[] b, int off, int len) final booleanfinal bytereadByte()final charreadChar()final doublefinal floatfinal voidreadFully(byte[] b) final voidreadFully(byte[] b, int off, int len) final intreadInt()final StringreadLine()Deprecated.final longreadLong()final shortfinal intfinal intfinal StringreadUTF()voidreset()longskip(long n) final intskipBytes(int n)
-
Field Details
-
in
-
maxObjectSize
private final int maxObjectSize -
classResolver
-
-
Constructor Details
-
ObjectDecoderInputStream
Creates a newObjectInput.- Parameters:
in- theInputStreamwhere the serialized form will be read from
-
ObjectDecoderInputStream
Creates a newObjectInput.- Parameters:
in- theInputStreamwhere the serialized form will be read fromclassLoader- theClassLoaderwhich will load the class of the serialized object
-
ObjectDecoderInputStream
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
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
- Specified by:
readObjectin interfaceObjectInput- Throws:
ClassNotFoundExceptionIOException
-
available
- Specified by:
availablein interfaceObjectInput- Overrides:
availablein classInputStream- Throws:
IOException
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Specified by:
closein interfaceObjectInput- Overrides:
closein classInputStream- Throws:
IOException
-
mark
public void mark(int readlimit) - Overrides:
markin classInputStream
-
markSupported
public boolean markSupported()- Overrides:
markSupportedin classInputStream
-
read
- Specified by:
readin interfaceObjectInput- Specified by:
readin classInputStream- Throws:
IOException
-
read
- Specified by:
readin interfaceObjectInput- Overrides:
readin classInputStream- Throws:
IOException
-
read
- Specified by:
readin interfaceObjectInput- Overrides:
readin classInputStream- Throws:
IOException
-
readBoolean
- Specified by:
readBooleanin interfaceDataInput- Throws:
IOException
-
readByte
- Specified by:
readBytein interfaceDataInput- Throws:
IOException
-
readChar
- Specified by:
readCharin interfaceDataInput- Throws:
IOException
-
readDouble
- Specified by:
readDoublein interfaceDataInput- Throws:
IOException
-
readFloat
- Specified by:
readFloatin interfaceDataInput- Throws:
IOException
-
readFully
- Specified by:
readFullyin interfaceDataInput- Throws:
IOException
-
readFully
- Specified by:
readFullyin interfaceDataInput- Throws:
IOException
-
readInt
- Specified by:
readIntin interfaceDataInput- Throws:
IOException
-
readLine
Deprecated.- Specified by:
readLinein interfaceDataInput- Throws:
IOException
-
readLong
- Specified by:
readLongin interfaceDataInput- Throws:
IOException
-
readShort
- Specified by:
readShortin interfaceDataInput- Throws:
IOException
-
readUnsignedByte
- Specified by:
readUnsignedBytein interfaceDataInput- Throws:
IOException
-
readUnsignedShort
- Specified by:
readUnsignedShortin interfaceDataInput- Throws:
IOException
-
readUTF
- Specified by:
readUTFin interfaceDataInput- Throws:
IOException
-
reset
- Overrides:
resetin classInputStream- Throws:
IOException
-
skip
- Specified by:
skipin interfaceObjectInput- Overrides:
skipin classInputStream- Throws:
IOException
-
skipBytes
- Specified by:
skipBytesin interfaceDataInput- Throws:
IOException
-