public class LongCodecImpl extends AbstractStandardCodec<Long> implements LongCodec
| Modifier and Type | Field and Description |
|---|---|
protected static long[] |
VARIABLE_LONG_DELTAS |
CLIENT_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 |
|---|
LongCodecImpl() |
| Modifier and Type | Method and Description |
|---|---|
Long |
decode(InputContext ctx,
int parameterizedJmfType) |
long |
decodePrimitive(InputContext ctx) |
protected static long |
deltaForVariableAbsoluteLongLength(int len) |
void |
dump(DumpContext ctx,
int parameterizedJmfType) |
void |
encode(OutputContext ctx,
Long v) |
void |
encodePrimitive(OutputContext ctx,
long v) |
Class<?> |
getObjectClass() |
int |
getObjectType() |
Class<?> |
getPrimitiveClass() |
int |
getPrimitiveType() |
protected int |
lenghtOfAbsoluteLong(long v) |
int |
lengthOfVariableAbsoluteLong(long abs) |
protected long |
readLongData(InputContext ctx,
int parameterizedJmfType) |
long |
readVariableLong(InputContext ctx) |
protected void |
writeLongData(OutputContext ctx,
int jmfType,
long v) |
void |
writeVariableLong(OutputContext ctx,
long v) |
escape, escape, escape, newBadTypeJMFEncodingExceptionprotected static final long[] VARIABLE_LONG_DELTAS
public LongCodecImpl()
public int getObjectType()
getObjectType in interface StandardCodec<Long>public Class<?> getObjectClass()
getObjectClass in interface BijectiveCodec<Long>public int getPrimitiveType()
getPrimitiveType in interface PrimitiveCodec<Long>public Class<?> getPrimitiveClass()
getPrimitiveClass in interface PrimitiveCodec<Long>public void encode(OutputContext ctx, Long v) throws IOException
encode in interface StandardCodec<Long>encode in interface LongCodecIOExceptionpublic Long decode(InputContext ctx, int parameterizedJmfType) throws IOException
decode in interface StandardCodec<Long>decode in interface LongCodecIOExceptionpublic void encodePrimitive(OutputContext ctx, long v) throws IOException
encodePrimitive in interface LongCodecIOExceptionpublic long decodePrimitive(InputContext ctx) throws IOException
decodePrimitive in interface LongCodecIOExceptionpublic void dump(DumpContext ctx, int parameterizedJmfType) throws IOException
dump in interface StandardCodec<Long>IOExceptionprotected void writeLongData(OutputContext ctx, int jmfType, long v) throws IOException
IOExceptionprotected int lenghtOfAbsoluteLong(long v)
protected long readLongData(InputContext ctx, int parameterizedJmfType) throws IOException
IOExceptionpublic void writeVariableLong(OutputContext ctx, long v) throws IOException
writeVariableLong in interface LongCodecIOExceptionpublic long readVariableLong(InputContext ctx) throws IOException
readVariableLong in interface LongCodecIOExceptionpublic int lengthOfVariableAbsoluteLong(long abs)
lengthOfVariableAbsoluteLong in interface LongCodecprotected static long deltaForVariableAbsoluteLongLength(int len)