| Constructor and Description |
|---|
FixedBufferCodec(int size) |
| Modifier and Type | Method and Description |
|---|---|
Buffer |
decode(DataInput dataIn)
Read the payload of the object from the DataInput stream.
|
Buffer |
deepCopy(Buffer source) |
void |
encode(Buffer value,
DataOutput dataOut)
Write the payload of the object to the DataOutput stream.
|
int |
estimatedSize(Buffer object) |
int |
getFixedSize() |
boolean |
isDeepCopySupported() |
boolean |
isEstimatedSizeSupported() |
public void encode(Buffer value, DataOutput dataOut) throws IOException
Codecencode in interface Codec<Buffer>IOExceptionpublic Buffer decode(DataInput dataIn) throws IOException
Codecdecode in interface Codec<Buffer>IOExceptionpublic int getFixedSize()
getFixedSize in interface Codec<Buffer>public boolean isDeepCopySupported()
isDeepCopySupported in interface Codec<Buffer>Codec.deepCopy(Object) operations is supported.public boolean isEstimatedSizeSupported()
isEstimatedSizeSupported in interface Codec<Buffer>Codec.estimatedSize(Object) operation is supported.public int estimatedSize(Buffer object)
estimatedSize in interface Codec<Buffer>Copyright © 2010–2025 FuseSource, Corp.. All rights reserved.