| Modifier and Type | Field and Description |
|---|---|
static BytesCodec |
INSTANCE |
| Constructor and Description |
|---|
BytesCodec() |
| Modifier and Type | Method and Description |
|---|---|
byte[] |
decode(DataInput dataIn)
Read the payload of the object from the DataInput stream.
|
byte[] |
deepCopy(byte[] source) |
void |
encode(byte[] data,
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,
DataOutput dataOut)
throws IOException
Codecencode in interface Codec<byte[]>IOExceptionpublic byte[] decode(DataInput dataIn) throws IOException
Codecdecode in interface Codec<byte[]>IOExceptionpublic 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–2025 FuseSource, Corp.. All rights reserved.