|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.buck.common.codec.CodecEncoder
public abstract class CodecEncoder
An engine that can transform raw data, represented as a sequence of bytes, to a specific encoding, into a sequence of bytes.
| Constructor Summary | |
|---|---|
protected |
CodecEncoder(Codec codec)
Initializes a new encoder. |
| Method Summary | |
|---|---|
Codec |
codec()
Returns the codec that created this encoder. |
abstract byte[] |
encode(byte[] bytes)
Encodes raw data using the codec. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
protected CodecEncoder(Codec codec)
codec - The codec for this encoder.| Method Detail |
|---|
public final Codec codec()
public abstract byte[] encode(byte[] bytes)
bytes - the raw data
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||