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 | Class and Description |
---|---|
class |
CompoundEncoder<I,O>
A compound encoder that processes input data through a chain of the specified encoders.
|
class |
EventDrivenCompoundEncoder<I,O>
An event driven compound encoder that processes input data through a chain of
the specified encoders.
|
Modifier and Type | Method and Description |
---|---|
IEncoder<?,?> |
ICodecPipeline.replace(Object oldKey,
Object key,
IEncoder<?,?> encoder)
Replaces the encoder identified by the specified old key with a new
encoder in this pipeline.
|
Modifier and Type | Method and Description |
---|---|
void |
ICodecPipeline.add(Object key,
IEncoder<?,?> encoder)
Appends a encoder at the last position of this pipeline.
|
void |
ICodecPipeline.addAfter(Object baseKey,
Object key,
IEncoder<?,?> encoder)
Inserts a encoder after an existing decoder of this pipeline.
|
void |
ICodecPipeline.addBefore(Object baseKey,
Object key,
IEncoder<?,?> encoder)
Inserts a encoder before an existing encoder of this pipeline.
|
void |
ICodecPipeline.addFirst(Object key,
IEncoder<?,?> encoder)
Inserts a encoder at the first position of this pipeline.
|
IEncoder<?,?> |
ICodecPipeline.replace(Object oldKey,
Object key,
IEncoder<?,?> encoder)
Replaces the encoder identified by the specified old key with a new
encoder in this pipeline.
|
Constructor and Description |
---|
CompoundEncoder(IEncoder<?,?>... encoders)
Constructs a compound encoder with a chain of the specified encoders.
|
EventDrivenCompoundEncoder(IEncoder<?,?>... encoders)
Constructs an event driven compound encoder with a chain of the specified
encoders.
|
Modifier and Type | Class and Description |
---|---|
class |
ArrayToBufferEncoder
An encoder transforming an array of bytes into a
ByteBuffer . |
class |
BufferToArrayEncoder
An encoder transforming a
ByteBuffer into an array of bytes. |
Modifier and Type | Class and Description |
---|---|
class |
GzipEncoder
|
class |
ZlibEncoder
Compresses an array of bytes using the
zlib compression.
|
Copyright © 2017–2021 SNF4J.ORG. All rights reserved.