public class VarSignedIntegerCodec extends VarIntegerCodec
| Modifier and Type | Field and Description |
|---|---|
static VarSignedIntegerCodec |
INSTANCE |
| Constructor and Description |
|---|
VarSignedIntegerCodec() |
| Modifier and Type | Method and Description |
|---|---|
Integer |
decode(DataInput dataIn)
Read the payload of the object from the DataInput stream.
|
void |
encode(Integer value,
DataOutput dataOut)
Write the payload of the object to the DataOutput stream.
|
int |
estimatedSize(Integer value) |
deepCopy, getFixedSize, isDeepCopySupported, isEstimatedSizeSupportedpublic static final VarSignedIntegerCodec INSTANCE
public void encode(Integer value, DataOutput dataOut) throws IOException
Codecencode in interface Codec<Integer>encode in class VarIntegerCodecIOExceptionpublic Integer decode(DataInput dataIn) throws IOException
Codecdecode in interface Codec<Integer>decode in class VarIntegerCodecIOExceptionpublic int estimatedSize(Integer value)
estimatedSize in interface Codec<Integer>estimatedSize in class VarIntegerCodecCopyright © 2010–2025 FuseSource, Corp.. All rights reserved.