public class ArrayCodecImpl extends AbstractIntegerStringCodec<Object> implements ArrayCodec
AbstractIntegerStringCodec.IntegerComponents, AbstractIntegerStringCodec.StringTypeHandlerJMF_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 |
|---|
ArrayCodecImpl() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canEncode(Object v) |
Object |
decode(InputContext ctx,
int parameterizedJmfType) |
void |
dump(DumpContext ctx,
int parameterizedJmfType) |
protected void |
dumpObjectArray(DumpContext ctx,
int parameterizedJmfComponentType,
int length,
int dimensions) |
protected void |
dumpObjectArray(DumpContext ctx,
String componentTypeName,
int length) |
protected void |
dumpPrimitiveArray(DumpContext ctx,
Class<?> componentType,
int jmfComponentType,
int length) |
protected void |
dumpPrimitiveArray(DumpContext ctx,
Class<?> componentType,
int jmfComponentType,
int length,
int dimensions) |
void |
encode(OutputContext ctx,
Object v) |
protected int |
getArrayDimensions(Object v) |
protected Class<?> |
getComponentType(Object v) |
int |
getObjectType() |
protected int |
lengthOfBooleanArray(int nb) |
protected Object |
newArray(Class<?> type,
int length,
int dimensions) |
protected String |
newDumpObjectArray(String componentTypeName,
int length,
int dimensions) |
protected String |
newDumpPrimitiveArray(int jmfComponentType,
int length,
int dimensions) |
protected Object |
readObjectArray(InputContext ctx,
Class<?> componentType,
int length) |
protected Object |
readObjectArray(InputContext ctx,
int parameterizedJmfComponentType,
int length,
int dimensions) |
protected Object |
readPrimitiveArray(InputContext ctx,
Class<?> componentType,
int jmfComponentType,
int length) |
protected Object |
readPrimitiveArray(InputContext ctx,
Class<?> componentType,
int jmfComponentType,
int length,
int dimensions) |
protected void |
writeObjectArray(OutputContext ctx,
Object v) |
protected void |
writeObjectArray(OutputContext ctx,
Object v,
int dimensions,
boolean writeDimensions) |
protected void |
writePrimitiveArray(OutputContext ctx,
Object v,
int jmfComponentType,
boolean writeType) |
protected void |
writePrimitiveArray(OutputContext ctx,
Object v,
int jmfComponentType,
int dimensions,
boolean writeDimensionsAndType) |
intComponents, readIntData, readString, readString, writeIntData, writeStringescape, escape, escape, newBadTypeJMFEncodingExceptionpublic ArrayCodecImpl()
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 ArrayCodecIOExceptionpublic Object decode(InputContext ctx, int parameterizedJmfType) throws IOException, ClassNotFoundException
decode in interface StandardCodec<Object>decode in interface ArrayCodecIOExceptionClassNotFoundExceptionpublic void dump(DumpContext ctx, int parameterizedJmfType) throws IOException
dump in interface StandardCodec<Object>IOExceptionprotected void writeObjectArray(OutputContext ctx, Object v, int dimensions, boolean writeDimensions) throws IOException
IOExceptionprotected void writeObjectArray(OutputContext ctx, Object v) throws IOException
IOExceptionprotected void writePrimitiveArray(OutputContext ctx, Object v, int jmfComponentType, int dimensions, boolean writeDimensionsAndType) throws IOException
IOExceptionprotected void writePrimitiveArray(OutputContext ctx, Object v, int jmfComponentType, boolean writeType) throws IOException
IOExceptionprotected int getArrayDimensions(Object v)
protected Class<?> getComponentType(Object v)
protected Object readObjectArray(InputContext ctx, int parameterizedJmfComponentType, int length, int dimensions) throws IOException, ClassNotFoundException
IOExceptionClassNotFoundExceptionprotected void dumpObjectArray(DumpContext ctx, int parameterizedJmfComponentType, int length, int dimensions) throws IOException
IOExceptionprotected Object readObjectArray(InputContext ctx, Class<?> componentType, int length) throws IOException, ClassNotFoundException
IOExceptionClassNotFoundExceptionprotected void dumpObjectArray(DumpContext ctx, String componentTypeName, int length) throws IOException
IOExceptionprotected String newDumpObjectArray(String componentTypeName, int length, int dimensions)
protected Object readPrimitiveArray(InputContext ctx, Class<?> componentType, int jmfComponentType, int length, int dimensions) throws IOException
IOExceptionprotected void dumpPrimitiveArray(DumpContext ctx, Class<?> componentType, int jmfComponentType, int length, int dimensions) throws IOException
IOExceptionprotected Object readPrimitiveArray(InputContext ctx, Class<?> componentType, int jmfComponentType, int length) throws IOException
IOExceptionprotected void dumpPrimitiveArray(DumpContext ctx, Class<?> componentType, int jmfComponentType, int length) throws IOException
IOExceptionprotected String newDumpPrimitiveArray(int jmfComponentType, int length, int dimensions) throws IOException
IOExceptionprotected int lengthOfBooleanArray(int nb)