| Modifier and Type | Field and Description |
|---|---|
static BytesCodec |
INSTANCE |
| Constructor and Description |
|---|
BytesCodec() |
| Modifier and Type | Method and Description |
|---|---|
byte[] |
decode(java.io.DataInput dataIn)
Read the payload of the object from the DataInput stream.
|
byte[] |
deepCopy(byte[] source) |
void |
encode(byte[] data,
java.io.DataOutput dataOut)
Write the payload of the object to the DataOutput stream.
|
int |
estimatedSize(byte[] object) |
int |
getFixedSize() |
boolean |
isDeepCopySupported() |
boolean |
isEstimatedSizeSupported() |
public static final BytesCodec INSTANCE
public void encode(byte[] data,
java.io.DataOutput dataOut)
throws java.io.IOException
Codecpublic byte[] decode(java.io.DataInput dataIn)
throws java.io.IOException
Codecpublic int getFixedSize()
getFixedSize in interface Codec<byte[]>public byte[] deepCopy(byte[] source)
public boolean isDeepCopySupported()
isDeepCopySupported in interface Codec<byte[]>Codec.deepCopy(Object) operations is supported.public boolean isEstimatedSizeSupported()
isEstimatedSizeSupported in interface Codec<byte[]>Codec.estimatedSize(Object) operation is supported.public int estimatedSize(byte[] object)
estimatedSize in interface Codec<byte[]>Copyright © 2010-2014 FuseSource, Corp.. All Rights Reserved.