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, isEstimatedSizeSupported
public static final VarSignedIntegerCodec INSTANCE
public void encode(Integer value, DataOutput dataOut) throws IOException
Codec
encode
in interface Codec<Integer>
encode
in class VarIntegerCodec
IOException
public Integer decode(DataInput dataIn) throws IOException
Codec
decode
in interface Codec<Integer>
decode
in class VarIntegerCodec
IOException
public int estimatedSize(Integer value)
estimatedSize
in interface Codec<Integer>
estimatedSize
in class VarIntegerCodec
Copyright © 2010–2021 FuseSource, Corp.. All rights reserved.