Package | Description |
---|---|
org.snf4j.core.codec |
Provides interfaces and classes for implementing encoders, decoders and
codec pipelines.
|
org.snf4j.core.codec.bytes |
Encoders and decoders which transform an array of bytes into a
ByteBuffer and vice versa. |
org.snf4j.core.codec.zip | |
org.snf4j.example.dtls |
A DTLS client/server example.
|
org.snf4j.example.echo |
An echoing (ping-pong traffic) client/server example.
|
org.snf4j.example.sctp |
An SCTP client/server example.
|
org.snf4j.example.websocket |
A WebSocket (data transfer and web chat) client/server example.
|
org.snf4j.websocket.extensions.compress |
Provides interfaces and classes implementing the Web Socket compress extensions.
|
org.snf4j.websocket.frame |
Provides interfaces and classes for the Web Socket frames and related codecs.
|
org.snf4j.websocket.handshake |
Provides interfaces and classes for the Web Socket handshake frames and related codecs.
|
Modifier and Type | Interface and Description |
---|---|
interface |
IBaseDecoder<I,O>
A special decoder that can determine how many bytes should be read from the
input buffer to create the byte array of the inbound data that can be decoded
by this decoder.
|
Modifier and Type | Class and Description |
---|---|
class |
CompoundDecoder<I,O>
A compound decoder that processes input data through a chain of the specified decoders.
|
class |
EventDrivenCompoundDecoder<I,O>
An event driven compound decoder that processes input data through a chain of
the specified decoders.
|
Modifier and Type | Method and Description |
---|---|
IDecoder<?,?> |
ICodecPipeline.replace(Object oldKey,
Object key,
IDecoder<?,?> decoder)
Replaces the decoder identified by the specified old key with a new
decoder in this pipeline.
|
Modifier and Type | Method and Description |
---|---|
void |
ICodecPipeline.add(Object key,
IDecoder<?,?> decoder)
Appends a decoder at the last position of this pipeline.
|
void |
ICodecPipeline.addAfter(Object baseKey,
Object key,
IDecoder<?,?> decoder)
Inserts a decoder after an existing decoder of this pipeline.
|
void |
ICodecPipeline.addBefore(Object baseKey,
Object key,
IDecoder<?,?> decoder)
Inserts a decoder before an existing decoder of this pipeline.
|
void |
ICodecPipeline.addFirst(Object key,
IDecoder<?,?> decoder)
Inserts a decoder at the first position of this pipeline.
|
IDecoder<?,?> |
ICodecPipeline.replace(Object oldKey,
Object key,
IDecoder<?,?> decoder)
Replaces the decoder identified by the specified old key with a new
decoder in this pipeline.
|
Constructor and Description |
---|
CompoundDecoder(IDecoder<?,?>... decoders)
Constructs a compound decoder with a chain of the specified decoders.
|
EventDrivenCompoundDecoder(IDecoder<?,?>... decoders)
Constructs an event driven compound decoder with a chain of the specified
decoders.
|
Modifier and Type | Class and Description |
---|---|
class |
ArrayToBufferDecoder
A decoder transforming an array of bytes into a
ByteBuffer . |
class |
ArrayToBufferHolderDecoder
A decoder transforming an array of bytes into a
IByteBufferHolder . |
class |
BufferHolderToArrayDecoder
A decoder transforming an
IByteBufferHolder into an array of bytes. |
class |
BufferHolderToBufferDecoder
A decoder transforming an
IByteBufferHolder into a ByteBuffer . |
class |
BufferToArrayDecoder
A decoder transforming a
ByteBuffer into an array of bytes. |
class |
BufferToBufferHolderDecoder
A decoder transforming a
ByteBuffer into an IByteBufferHolder . |
Modifier and Type | Class and Description |
---|---|
class |
GzipDecoder
|
class |
ZlibDecoder
Decompresses an array of bytes using the
zlib compression.
|
Modifier and Type | Class and Description |
---|---|
class |
PacketDecoder |
Modifier and Type | Class and Description |
---|---|
class |
Decoder |
Modifier and Type | Class and Description |
---|---|
class |
Aggregator |
Modifier and Type | Class and Description |
---|---|
class |
IndexPageDecoder |
Modifier and Type | Class and Description |
---|---|
class |
PerMessageDeflateDecoder
The per-message implementation of deflate decoder (decompressor).
|
Modifier and Type | Method and Description |
---|---|
protected void |
PerMessageDeflateExtension.updatePipeline(ICodecPipeline pipeline,
IDecoder<Frame,Frame> decoder) |
Modifier and Type | Class and Description |
---|---|
class |
FrameAggregator
Aggregates fragmented Web Socket frames into complete (final) frames.
|
class |
FrameDecoder
Decodes a Web Socket frame from bytes in the protocol version 13 format.
|
class |
FrameUtf8Validator
Validates the UTF-8 encoding correctness of the payload data in Web Socket
text frames and in Web Socket continuation frames being theirs continuation.
|
Modifier and Type | Class and Description |
---|---|
class |
HandshakeDecoder
Decodes a Web Socket handshake frame from bytes in the protocol version 13 format.
|
Copyright © 2017–2022 SNF4J.ORG. All rights reserved.