public class FixedBufferCodec extends java.lang.Object implements Codec<Buffer>
| Constructor and Description |
|---|
FixedBufferCodec(int size) |
| Modifier and Type | Method and Description |
|---|---|
Buffer |
decode(java.io.DataInput dataIn)
Read the payload of the object from the DataInput stream.
|
Buffer |
deepCopy(Buffer source) |
void |
encode(Buffer value,
java.io.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, java.io.DataOutput dataOut) throws java.io.IOException
Codecpublic Buffer decode(java.io.DataInput dataIn) throws java.io.IOException
Codecpublic 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-2014 FuseSource, Corp.. All Rights Reserved.