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 |
Modifier and Type | Interface and Description |
---|---|
interface |
IBaseDecoder<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 |
BufferToArrayDecoder
A decoder transforming a
ByteBuffer into an array of bytes. |
Modifier and Type | Class and Description |
---|---|
class |
GzipDecoder
|
class |
ZlibDecoder
Decompresses an array of bytes using the
zlib compression.
|
Copyright © 2017–2021 SNF4J.ORG. All rights reserved.