public class PrimitiveArrayCodecImpl extends AbstractArrayCodec implements PrimitiveArrayCodec
AbstractArrayCodec.ArrayStructure| Modifier and Type | Field and Description |
|---|---|
protected static boolean[] |
BOOLEAN_0 |
protected static byte[] |
BYTE_0 |
protected static char[] |
CHARACTER_0 |
protected static double[] |
DOUBLE_0 |
protected static float[] |
FLOAT_0 |
protected static int[] |
INTEGER_0 |
protected static long[] |
LONG_0 |
protected static short[] |
SHORT_0 |
CLIENT_PERSISTENCE_COLLECTION_PACKAGE, JMF_1111_1011, JMF_1111_1100, JMF_1111_1101, JMF_1111_1110, JMF_1111_1111, 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_ARRAY, JMF_OBJECT_END, JMF_PRIMITIVE_ARRAY, 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_1101, JMF_XX01_1110, JMF_XX01_1111, JMF_XXX0_1110, JMF_XXX0_1111, JMF_XXXX_0111, UTF8| Constructor and Description |
|---|
PrimitiveArrayCodecImpl() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canEncode(Object v) |
Object |
decode(InputContext ctx,
int parameterizedJmfType) |
void |
dump(DumpContext ctx,
int parameterizedJmfType) |
protected void |
dumpBooleanArray0(DumpContext ctx,
int length) |
protected void |
dumpByteArray0(DumpContext ctx,
int length) |
protected void |
dumpCharacterArray0(DumpContext ctx,
int length) |
protected void |
dumpDoubleArray0(DumpContext ctx,
int length) |
protected void |
dumpFloatArray0(DumpContext ctx,
int length) |
protected void |
dumpIntegerArray0(DumpContext ctx,
int length) |
protected void |
dumpLongArray0(DumpContext ctx,
int length) |
protected void |
dumpPrimitiveArray(DumpContext ctx,
Class<?> componentType,
int jmfComponentType,
int length,
int dimensions) |
protected void |
dumpPrimitiveArray0(DumpContext ctx,
Class<?> componentType,
int jmfComponentType,
int length) |
protected void |
dumpShortArray0(DumpContext ctx,
int length) |
void |
encode(OutputContext ctx,
Object v) |
int |
getObjectType() |
protected Class<?> |
jmfTypeToPrimitiveClass(int jmfType) |
protected int |
lengthOfBooleanArray(int nb) |
protected String |
newDumpPrimitiveArray(int jmfComponentType,
int length,
int dimensions) |
protected int |
primitiveClassToJmfType(Class<?> primitiveClass) |
protected boolean[] |
readBooleanArray0(InputContext ctx,
int length) |
protected byte[] |
readByteArray0(InputContext ctx,
int length) |
protected char[] |
readCharacterArray0(InputContext ctx,
int length) |
protected double[] |
readDoubleArray0(InputContext ctx,
int length) |
protected float[] |
readFloatArray0(InputContext ctx,
int length) |
protected int[] |
readIntegerArray0(InputContext ctx,
int length) |
protected long[] |
readLongArray0(InputContext ctx,
int length) |
protected Object |
readPrimitiveArray(InputContext ctx,
Class<?> componentType,
int jmfComponentType,
int length,
int dimensions) |
protected Object |
readPrimitiveArray0(InputContext ctx,
Class<?> componentType,
int jmfComponentType,
int length) |
protected short[] |
readShortArray0(InputContext ctx,
int length) |
protected void |
writeBooleanArrayContent0(OutputContext ctx,
boolean[] v) |
protected void |
writeByteArrayContent0(OutputContext ctx,
byte[] v) |
protected void |
writeCharacterArrayContent0(OutputContext ctx,
char[] v) |
protected void |
writeDoubleArrayContent0(OutputContext ctx,
double[] v) |
protected void |
writeFloatArrayContent0(OutputContext ctx,
float[] v) |
protected void |
writeIntegerArrayContent0(OutputContext ctx,
int[] v) |
protected void |
writeLongArrayContent0(OutputContext ctx,
long[] v) |
protected void |
writePrimitiveArrayContent(OutputContext ctx,
Object v,
int jmfComponentType,
int dimensions) |
protected void |
writePrimitiveArrayContent0(OutputContext ctx,
Object v,
int jmfComponentType) |
protected void |
writeShortArrayContent0(OutputContext ctx,
short[] v) |
getArrayDimensions, getComponentType, newArrayescape, escape, escape, newBadTypeJMFEncodingExceptionprotected static final boolean[] BOOLEAN_0
protected static final char[] CHARACTER_0
protected static final byte[] BYTE_0
protected static final short[] SHORT_0
protected static final int[] INTEGER_0
protected static final long[] LONG_0
protected static final float[] FLOAT_0
protected static final double[] DOUBLE_0
public PrimitiveArrayCodecImpl()
public int getObjectType()
getObjectType in interface StandardCodec<Object>public boolean canEncode(Object v)
canEncode in interface ConditionalObjectCodecpublic void encode(OutputContext ctx, Object v) throws IOException
encode in interface StandardCodec<Object>encode in interface PrimitiveArrayCodecIOExceptionprotected void writePrimitiveArrayContent(OutputContext ctx, Object v, int jmfComponentType, int dimensions) throws IOException
IOExceptionprotected void writePrimitiveArrayContent0(OutputContext ctx, Object v, int jmfComponentType) throws IOException
IOExceptionprotected void writeBooleanArrayContent0(OutputContext ctx, boolean[] v) throws IOException
IOExceptionprotected void writeCharacterArrayContent0(OutputContext ctx, char[] v) throws IOException
IOExceptionprotected void writeByteArrayContent0(OutputContext ctx, byte[] v) throws IOException
IOExceptionprotected void writeShortArrayContent0(OutputContext ctx, short[] v) throws IOException
IOExceptionprotected void writeIntegerArrayContent0(OutputContext ctx, int[] v) throws IOException
IOExceptionprotected void writeLongArrayContent0(OutputContext ctx, long[] v) throws IOException
IOExceptionprotected void writeFloatArrayContent0(OutputContext ctx, float[] v) throws IOException
IOExceptionprotected void writeDoubleArrayContent0(OutputContext ctx, double[] v) throws IOException
IOExceptionpublic Object decode(InputContext ctx, int parameterizedJmfType) throws IOException, ClassNotFoundException
decode in interface StandardCodec<Object>decode in interface PrimitiveArrayCodecIOExceptionClassNotFoundExceptionprotected Object readPrimitiveArray(InputContext ctx, Class<?> componentType, int jmfComponentType, int length, int dimensions) throws IOException
IOExceptionprotected Object readPrimitiveArray0(InputContext ctx, Class<?> componentType, int jmfComponentType, int length) throws IOException
IOExceptionprotected boolean[] readBooleanArray0(InputContext ctx, int length) throws IOException
IOExceptionprotected char[] readCharacterArray0(InputContext ctx, int length) throws IOException
IOExceptionprotected byte[] readByteArray0(InputContext ctx, int length) throws IOException
IOExceptionprotected short[] readShortArray0(InputContext ctx, int length) throws IOException
IOExceptionprotected int[] readIntegerArray0(InputContext ctx, int length) throws IOException
IOExceptionprotected long[] readLongArray0(InputContext ctx, int length) throws IOException
IOExceptionprotected float[] readFloatArray0(InputContext ctx, int length) throws IOException
IOExceptionprotected double[] readDoubleArray0(InputContext ctx, int length) throws IOException
IOExceptionpublic void dump(DumpContext ctx, int parameterizedJmfType) throws IOException
dump in interface StandardCodec<Object>IOExceptionprotected void dumpPrimitiveArray(DumpContext ctx, Class<?> componentType, int jmfComponentType, int length, int dimensions) throws IOException
IOExceptionprotected void dumpPrimitiveArray0(DumpContext ctx, Class<?> componentType, int jmfComponentType, int length) throws IOException
IOExceptionprotected String newDumpPrimitiveArray(int jmfComponentType, int length, int dimensions) throws IOException
IOExceptionprotected void dumpBooleanArray0(DumpContext ctx, int length) throws IOException
IOExceptionprotected void dumpCharacterArray0(DumpContext ctx, int length) throws IOException
IOExceptionprotected void dumpByteArray0(DumpContext ctx, int length) throws IOException
IOExceptionprotected void dumpShortArray0(DumpContext ctx, int length) throws IOException
IOExceptionprotected void dumpIntegerArray0(DumpContext ctx, int length) throws IOException
IOExceptionprotected void dumpLongArray0(DumpContext ctx, int length) throws IOException
IOExceptionprotected void dumpFloatArray0(DumpContext ctx, int length) throws IOException
IOExceptionprotected void dumpDoubleArray0(DumpContext ctx, int length) throws IOException
IOExceptionprotected int lengthOfBooleanArray(int nb)
protected int primitiveClassToJmfType(Class<?> primitiveClass) throws JMFEncodingException
JMFEncodingExceptionprotected Class<?> jmfTypeToPrimitiveClass(int jmfType) throws JMFEncodingException
JMFEncodingException