public class ArrayMarshaller
extends java.lang.Object
| Constructor and Description | 
|---|
ArrayMarshaller()  | 
| Modifier and Type | Method and Description | 
|---|---|
static byte[] | 
createStream(java.lang.Class cls, java.lang.Object[] obj)
NEW Convert an array of objects into byte stream. 
 | 
static byte[] | 
createStream(int[] val)
NEW Convert an integer array into byte stream. 
 | 
static int[] | 
readInt(byte[] byteStream)
NEW Convert byte stream into an array of integers. 
 | 
static java.lang.Object[] | 
readObject(java.lang.Class cls, byte[] stream)
Convert byte stream into an array of objects. 
 | 
static java.lang.String[] | 
readString(byte[] byteStream)
NEW Convert byte stream into an array of Strings. 
 | 
public static final byte[] createStream(java.lang.Class cls,
                  java.lang.Object[] obj)
                                 throws DataCreationException
cls - the class of the object.obj - the array of objects to be converted.DataCreationException - is thrown when there is an error occured in the process
public static final java.lang.Object[] readObject(java.lang.Class cls,
                            byte[] stream)
                                           throws DataCreationException
cls - the class of the object.stream - the byte stream to be converted.DataCreationException - is thrown when there is an error occured in the process
public static final byte[] createStream(int[] val)
                                 throws DataCreationException
val - the array of integers to be converted.DataCreationException - is thrown when there is an error occured in the process
public static final java.lang.String[] readString(byte[] byteStream)
                                           throws DataCreationException
byteStream - the byte stream to be converted.DataCreationException - is thrown when there is an error occured in the process
public static final int[] readInt(byte[] byteStream)
                           throws DataCreationException
byteStream - the byte stream to be converted.DataCreationException - is thrown when there is an error occured in the process