Package io.netty.handler.codec
package io.netty.handler.codec
Extensible decoder and its common implementations which deal with the
packet fragmentation and reassembly issue found in a stream-based transport
such as TCP/IP.
-
ClassDescriptionThe newline characters to insert between header entries.The separator characters to insert between a header name and a header value.A Codec for on-the-fly encoding/decoding of bytes to messages and vise-versa.
ChannelInboundHandlerAdapter
which decodes bytes in a stream-like fashion from oneByteBuf
to an other Message type.CumulateByteBuf
s.Converts to/from native types, generalObject
, andCharSequence
s.AnException
which is thrown by a codec.SpecialAbstractList
implementation which is used within our codec base classes.AnDecoderException
which is thrown when the received frame data could not be decoded by an inbound handler.A decoder that decodes the content of the receivedDatagramPacket
using the specifiedByteBuf
decoder.An encoder that encodes the content inAddressedEnvelope
toDatagramPacket
using the specified message encoder.A formatter for HTTP header dates, such as "Expires" and "Date" headers, or "expires" field in "Set-Cookie".AnCodecException
which is thrown by a decoder.Provides the accessor methods for theDecoderResult
property of a decoded message.DefaultHeaders<K,V, T extends Headers<K, V, T>> Default implementation ofHeaders
;DefaultHeadersImpl<K,V> A concrete implementation ofDefaultHeaders
that allows for direct instantiation.A decoder that splits the receivedByteBuf
s by one or more delimiters.A set of commonly used delimiters forDelimiterBasedFrameDecoder
.EmptyHeaders<K,V, T extends Headers<K, V, T>> AnCodecException
which is thrown by an encoder.A decoder that splits the receivedByteBuf
s by the fixed number of bytes.Common interface forHeaders
which represents a mapping of key to value.Provides utility methods related toHeaders
.A decoder that splits the receivedByteBuf
s dynamically by the value of the length field in the message.An encoder that prepends the length of the message.A decoder that splits the receivedByteBuf
s on line endings.Raised byMessageAggregator
when aggregation fails due to an unexpected message sequence.MessageAggregator<I,S, C extends ByteBufHolder, O extends ByteBufHolder> An abstractChannelHandler
that aggregates a series of message objects into a single aggregated message.ChannelOutboundHandlerAdapter
which encodes message in a stream-like fashion from one message to anByteBuf
.MessageToMessageCodec<INBOUND_IN,OUTBOUND_IN> A Codec for on-the-fly encoding/decoding of message.ChannelInboundHandlerAdapter
which decodes from one message to an other message.ChannelOutboundHandlerAdapter
which encodes from one message to an other message For example here is an implementation which decodes anInteger
to anString
.ACodecException
which is thrown when aChannel
is closed unexpectedly before the codec finishes handling the current message, such as missing response while waiting for a request.Result of detecting a protocol.The state of the current detection.A specialized variation ofByteToMessageDecoder
which enables implementation of a non-blocking decoder in the blocking I/O paradigm.SpecialByteBuf
implementation which is used by theReplayingDecoder
AnDecoderException
which is thrown when the length of the frame decoded is greater than the allowed maximum.Thrown if an unsupported message is received by an codec.UnsupportedOperationException
will be thrown from allValueConverter
methods.Converts to/from a generic object to the type.