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