GeezerVison is showing netty.io — MarshallingDecoder (Netty API Reference (4.1.141.Final))
Class MarshallingDecoder
-
-
-
Constructor Summary
Constructors
Constructor
Description
Creates a new decoder whose maximum object size is 1048576
bytes.
Creates a new decoder with the specified maximum object size.
-
Method Summary
Modifier and Type
Method
Description
Create a frame out of the ByteBuf and return it.
Extract the sub-region of the specified buffer.
decode, getUnadjustedFrameLength
Modifier and Type
Method
Description
protected final void
Decode the from one ByteBuf to an other.
protected long
Decodes the specified region of the buffer into an unadjusted frame length.
actualReadableBytes, callDecode, channelInactive, channelRead, channelReadComplete, decodeLast, discardSomeReadBytes, handlerRemoved, handlerRemoved0, internalBuffer, isSingleDecode, setCumulator, setDiscardAfterReads, setSingleDecode, userEventTriggered
Modifier and Type
Method
Description
protected int
Returns the actual number of readable bytes in the internal cumulative
buffer of this decoder.
protected void
Called once data should be decoded from the given ByteBuf.
void
void
void
protected void
protected final void
final void
Do nothing by default, sub-classes may override this method.
protected void
Gets called after the ByteToMessageDecoder was removed from the actual context and it doesn't handle
events anymore.
Returns the internal cumulative buffer of this decoder.
boolean
void
void
void
void
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
MarshallingDecoder
Creates a new decoder whose maximum object size is 1048576
bytes. If the size of the received object is greater than
1048576 bytes, a StreamCorruptedException will be
raised.
-
MarshallingDecoder
Creates a new decoder with the specified maximum object size.
- Parameters:
maxObjectSize - the maximum byte length of the serialized object.
if the length of the received object is greater
than this value, TooLongFrameException
will be raised.
-
|