ch.javasoft.jbase.marshal
Class PrimitiveArrayMarshallers

java.lang.Object
  extended by 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.


Field Summary
static EntityMarshaller<boolean[]> BOOLEAN
           
static EntityMarshaller<byte[]> BYTE
           
static EntityMarshaller<char[]> CHAR
           
static EntityMarshaller<double[]> DOUBLE
           
static EntityMarshaller<float[]> FLOAT
           
static EntityMarshaller<int[]> INT
           
static EntityMarshaller<long[]> LONG
           
static EntityMarshaller<short[]> SHORT
           
 
Method Summary
static FixedWidthMarshaller<boolean[]> getForFixedBooleanArray(int arrayLength)
           
static FixedWidthMarshaller<byte[]> getForFixedByteArray(int arrayLength)
           
static FixedWidthMarshaller<char[]> getForFixedCharArray(int arrayLength)
           
static FixedWidthMarshaller<double[]> getForFixedDoubleArray(int arrayLength)
           
static FixedWidthMarshaller<float[]> getForFixedFloatArray(int arrayLength)
           
static FixedWidthMarshaller<int[]> getForFixedIntArray(int arrayLength)
           
static FixedWidthMarshaller<long[]> getForFixedLongArray(int arrayLength)
           
static FixedWidthMarshaller<short[]> getForFixedShortArray(int arrayLength)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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
Method Detail

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)