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
Codec
encode
in interface Codec<Buffer>
IOException
public Buffer decode(DataInput dataIn) throws IOException
Codec
decode
in interface Codec<Buffer>
IOException
public 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–2021 FuseSource, Corp.. All rights reserved.