public class IntegerCodecImpl extends AbstractIntegerStringCodec<Integer> implements IntegerCodec
AbstractIntegerStringCodec.IntegerComponents, AbstractIntegerStringCodec.StringTypeHandler| Modifier and Type | Field and Description |
|---|---|
protected static int[] |
VARIABLE_INT_DELTAS |
JMF_STRING_TYPE_HANDLERCLIENT_PERSISTENCE_COLLECTION_PACKAGE, JMF_1111_1010, JMF_1111_1011, JMF_1111_1100, JMF_1111_1101, JMF_1111_1110, JMF_1111_1111, JMF_ARRAY, JMF_ARRAY_LIST, JMF_BIG_DECIMAL, JMF_BIG_INTEGER, JMF_BOOLEAN, JMF_BOOLEAN_OBJECT, JMF_BYTE, JMF_BYTE_OBJECT, JMF_CHARACTER, JMF_CHARACTER_OBJECT, JMF_CLASS, JMF_DATE, JMF_DOUBLE, JMF_DOUBLE_OBJECT, JMF_ENUM, JMF_FLOAT, JMF_FLOAT_OBJECT, JMF_HASH_MAP, JMF_HASH_SET, JMF_INTEGER, JMF_INTEGER_OBJECT, JMF_LONG, JMF_LONG_OBJECT, JMF_NULL, JMF_OBJECT, JMF_OBJECT_END, JMF_SHORT, JMF_SHORT_OBJECT, JMF_SQL_DATE, JMF_SQL_TIME, JMF_SQL_TIMESTAMP, JMF_STRING, JMF_X011_1100, JMF_X011_1101, JMF_X011_1110, JMF_X011_1111, JMF_XX01_1110, JMF_XX01_1111, JMF_XXX0_1101, JMF_XXX0_1110, JMF_XXX0_1111, JMF_XXXX_0111, UTF8| Constructor and Description |
|---|
IntegerCodecImpl() |
| Modifier and Type | Method and Description |
|---|---|
Integer |
decode(InputContext ctx,
int parameterizedJmfType) |
int |
decodePrimitive(InputContext ctx) |
protected static int |
deltaForVariableAbsoluteIntLength(int len) |
void |
dump(DumpContext ctx,
int parameterizedJmfType) |
void |
encode(OutputContext ctx,
Integer v) |
void |
encodePrimitive(OutputContext ctx,
int v) |
Class<?> |
getObjectClass() |
int |
getObjectType() |
Class<?> |
getPrimitiveClass() |
int |
getPrimitiveType() |
protected static int |
lengthOfVariableAbsoluteInt(int abs) |
protected int |
readIntData(InputContext ctx,
int parameterizedJmfType) |
int |
readVariableInt(InputContext ctx) |
protected void |
writeIntData(OutputContext ctx,
int jmfType,
int v) |
void |
writeVariableInt(OutputContext ctx,
int v) |
intComponents, readIntData, readString, readString, writeIntData, writeStringescape, escape, escape, newBadTypeJMFEncodingExceptionprotected static final int[] VARIABLE_INT_DELTAS
public IntegerCodecImpl()
public int getObjectType()
getObjectType in interface StandardCodec<Integer>public Class<?> getObjectClass()
getObjectClass in interface BijectiveCodec<Integer>public int getPrimitiveType()
getPrimitiveType in interface PrimitiveCodec<Integer>public Class<?> getPrimitiveClass()
getPrimitiveClass in interface PrimitiveCodec<Integer>public void encode(OutputContext ctx, Integer v) throws IOException
encode in interface StandardCodec<Integer>encode in interface IntegerCodecIOExceptionpublic Integer decode(InputContext ctx, int parameterizedJmfType) throws IOException
decode in interface StandardCodec<Integer>decode in interface IntegerCodecIOExceptionpublic void encodePrimitive(OutputContext ctx, int v) throws IOException
encodePrimitive in interface IntegerCodecIOExceptionpublic int decodePrimitive(InputContext ctx) throws IOException
decodePrimitive in interface IntegerCodecIOExceptionpublic void dump(DumpContext ctx, int parameterizedJmfType) throws IOException
dump in interface StandardCodec<Integer>IOExceptionprotected void writeIntData(OutputContext ctx, int jmfType, int v) throws IOException
IOExceptionprotected int readIntData(InputContext ctx, int parameterizedJmfType) throws IOException
IOExceptionpublic void writeVariableInt(OutputContext ctx, int v) throws IOException
writeVariableInt in interface IntegerCodecIOExceptionpublic int readVariableInt(InputContext ctx) throws IOException
readVariableInt in interface IntegerCodecIOExceptionprotected static int lengthOfVariableAbsoluteInt(int abs)
protected static int deltaForVariableAbsoluteIntLength(int len)