ch.javasoft.jbase.marshal
Class PrimitiveArrayMarshallers
java.lang.Object
ch.javasoft.jbase.marshal.PrimitiveArrayMarshallers
public class PrimitiveArrayMarshallers
- extends Object
PrimitiveArrayMarshallers contains constants and static methods to
access marshallers for one dimensional arrays of primitive data types. One
row (or entity) corresponds to an array of some primitive Java data type.
If the array size is previously known, the appropriate static method can
be used to create a FixedWidthMarshaller instance for the specified
array size. Such marshallers can be used with a FixedWidthTable.
If the array size is not known and possibly varying for different entity
instances (or rows), the constant marshallers can be used. They write the
array length for each row and are not FixedWidthMarshaller instances.
Such marshallers can be used with a VariableWidthTable.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BYTE
public static final EntityMarshaller<byte[]> BYTE
SHORT
public static final EntityMarshaller<short[]> SHORT
INT
public static final EntityMarshaller<int[]> INT
LONG
public static final EntityMarshaller<long[]> LONG
FLOAT
public static final EntityMarshaller<float[]> FLOAT
DOUBLE
public static final EntityMarshaller<double[]> DOUBLE
BOOLEAN
public static final EntityMarshaller<boolean[]> BOOLEAN
CHAR
public static final EntityMarshaller<char[]> CHAR
getForFixedByteArray
public static FixedWidthMarshaller<byte[]> getForFixedByteArray(int arrayLength)
getForFixedShortArray
public static FixedWidthMarshaller<short[]> getForFixedShortArray(int arrayLength)
getForFixedIntArray
public static FixedWidthMarshaller<int[]> getForFixedIntArray(int arrayLength)
getForFixedLongArray
public static FixedWidthMarshaller<long[]> getForFixedLongArray(int arrayLength)
getForFixedFloatArray
public static FixedWidthMarshaller<float[]> getForFixedFloatArray(int arrayLength)
getForFixedDoubleArray
public static FixedWidthMarshaller<double[]> getForFixedDoubleArray(int arrayLength)
getForFixedBooleanArray
public static FixedWidthMarshaller<boolean[]> getForFixedBooleanArray(int arrayLength)
getForFixedCharArray
public static FixedWidthMarshaller<char[]> getForFixedCharArray(int arrayLength)