public class ResultPayload extends Object
Modifier and Type | Field and Description |
---|---|
static int |
DOUBLE |
static int |
DOUBLE_2D_ARRAY |
static int |
DOUBLE_ARRAY |
static int |
FLOAT |
static int |
FLOAT_2D_ARRAY |
static int |
FLOAT_ARRAY |
static int |
HASHMAP |
static int |
HASHTABLE |
static int |
INT |
static int |
INT_2D_ARRAY |
static int |
INT_ARRAY |
static int |
LONG |
static int |
LONG_2D_ARRAY |
static int |
LONG_ARRAY |
static int |
OBJECT |
static int |
OBJECT_2D_ARRAY |
static int |
OBJECT_ARRAY |
static int |
SHORT |
static int |
SHORT_2D_ARRAY |
static int |
SHORT_ARRAY |
static int |
STRING |
static int |
STRING_2D_ARRAY |
static int |
STRING_ARRAY |
Constructor and Description |
---|
ResultPayload() |
Modifier and Type | Method and Description |
---|---|
byte[] |
getBytes(double value)
This method converts a
double into a byte[] . |
byte[] |
getBytes(double[] sequence)
This method converts a double[] into a byte[].
|
byte[] |
getBytes(double[][] matrix)
This method converts a
double[][] into a byte[]
. |
byte[] |
getBytes(float value)
This method converts a
float into a byte[] . |
byte[] |
getBytes(float[] sequence)
This method converts a float[] into a byte[].
|
byte[] |
getBytes(float[][] matrix)
This method converts a
float[][] into a byte[] . |
byte[] |
getBytes(HashMap<?,?> sequence)
This method converts a HashMap into a byte[].
|
byte[] |
getBytes(Hashtable<?,?> sequence)
This method converts a Hashtable into a byte[].
|
byte[] |
getBytes(int value)
This method converts an
int into a byte[] . |
byte[] |
getBytes(int[] sequence)
This method converts an int[] into a byte[].
|
byte[] |
getBytes(int[][] matrix)
This method converts a
int[][] into a byte[] . |
byte[] |
getBytes(long value)
This method converts a
long into a byte[] . |
byte[] |
getBytes(long[] sequence)
This method converts a long[] into a byte[].
|
byte[] |
getBytes(long[][] matrix)
This method converts a
long[][] into a byte[] . |
byte[] |
getBytes(Object[] sequence)
This method converts an
Object[] into a byte[] . |
byte[] |
getBytes(short value)
This method converts a
short into a byte[] . |
byte[] |
getBytes(short[] sequence)
This method converts a short[] into a byte[].
|
byte[] |
getBytes(short[][] matrix)
This method converts a
short[][] into a byte[] . |
byte[] |
getBytes(String value)
This method converts a
String into a byte[] . |
byte[] |
getBytes(String[] sequence)
This method converts a String[] into a byte[].
|
double |
getDouble(byte[] marshalledBytes)
This method converts a
byte[] into a double . |
double[][] |
getDouble2DArray(byte[] marshalledBytes)
This method converts a
byte[] into a double[][]
. |
double[] |
getDoubleArray(byte[] marshalledBytes)
This method converts a byte[] into a double[].
|
float |
getFloat(byte[] marshalledBytes)
This method converts a
byte[] into a float . |
float[][] |
getFloat2DArray(byte[] marshalledBytes)
This method converts a
byte[] into a float[][] . |
float[] |
getFloatArray(byte[] marshalledBytes)
This method converts a byte[] into a float[].
|
HashMap<?,?> |
getHashMap(byte[] marshalledBytes)
This method converts a byte[] into a HashMap.
|
Hashtable<?,?> |
getHashtable(byte[] marshalledBytes)
This method converts a byte[] into a Hashtable.
|
static ResultPayload |
getInstance()
Deprecated.
|
int |
getInt(byte[] marshalledBytes)
This method converts a
byte[] into an int . |
int[][] |
getInt2DArray(byte[] marshalledBytes)
This method converts a
byte[] into a int[][] . |
int[] |
getIntArray(byte[] marshalledBytes)
This method converts a byte[] into an int[].
|
long |
getLong(byte[] marshalledBytes)
This method converts a
byte[] into a long . |
long[][] |
getLong2DArray(byte[] marshalledBytes)
This method converts a
byte[] into a long[][] . |
long[] |
getLongArray(byte[] marshalledBytes)
This method converts a byte[] into a long[].
|
Object[] |
getObjectArray(byte[] marshalledBytes)
This method converts a
byte[] into an Object[] . |
short |
getShort(byte[] marshalledBytes)
This method converts a
byte[] into a short . |
short[][] |
getShort2DArray(byte[] marshalledBytes)
This method converts a
byte[] into a short[][] . |
short[] |
getShortArray(byte[] marshalledBytes)
This method converts a byte[] into a short[].
|
String |
getString(byte[] marshalledBytes)
This method converts a
byte[] into a String . |
String[] |
getStringArray(byte[] marshalledBytes)
This method converts a byte[] into a String[].
|
public static final int INT
public static final int SHORT
public static final int LONG
public static final int DOUBLE
public static final int FLOAT
public static final int STRING
public static final int OBJECT
public static final int HASHTABLE
public static final int HASHMAP
public static final int INT_ARRAY
public static final int SHORT_ARRAY
public static final int LONG_ARRAY
public static final int DOUBLE_ARRAY
public static final int FLOAT_ARRAY
public static final int STRING_ARRAY
public static final int OBJECT_ARRAY
public static final int INT_2D_ARRAY
public static final int SHORT_2D_ARRAY
public static final int LONG_2D_ARRAY
public static final int DOUBLE_2D_ARRAY
public static final int FLOAT_2D_ARRAY
public static final int STRING_2D_ARRAY
public static final int OBJECT_2D_ARRAY
@Deprecated public static ResultPayload getInstance()
public byte[] getBytes(int value) throws MarshallingException
int
into a byte[]
.value
- The int
to be marshalled into a byte[]
.byte[]
representation of the int
.MarshallingException
- If there are problems Marshalling the int
.public int getInt(byte[] marshalledBytes) throws MarshallingException
byte[]
into an int
.marshalledBytes
- The byte[]
representation of the int
int
representation of the byte[]
NullPointerException
- If the specified byte[]
is NULL.MarshallingException
- If there are problems Unmarshalling the int
.public byte[] getBytes(short value) throws MarshallingException
short
into a byte[]
.value
- The short
to be marshalled into a byte[]
.byte[]
representation of the short
.MarshallingException
- If there are problems Marshalling the short
.public short getShort(byte[] marshalledBytes) throws MarshallingException
byte[]
into a short
.marshalledBytes
- The byte[]
representation of the short
.short
representation of the byte[]
NullPointerException
- If the specified byte[]
is NULL.MarshallingException
- If there are problems Unmarshalling the short
.public byte[] getBytes(long value) throws MarshallingException
long
into a byte[]
.value
- The long
to be marshalled into a byte[]
.byte[]
representation of the long
.MarshallingException
- If there are problems Marshalling the long
.public long getLong(byte[] marshalledBytes) throws MarshallingException
byte[]
into a long
.marshalledBytes
- The byte[]
representation of the long
.long
representation of the byte[]
NullPointerException
- If the specified byte[]
is NULL.MarshallingException
- If there are problems Unmarshalling the long
.public byte[] getBytes(double value) throws MarshallingException
double
into a byte[]
.value
- The double
to be marshalled into a byte[]
.byte[]
representation of the double
.MarshallingException
- If there are problems Marshalling the double
.public double getDouble(byte[] marshalledBytes) throws MarshallingException
byte[]
into a double
.marshalledBytes
- The byte[]
representation of the double
.double
representation of the byte[]
NullPointerException
- If the specified byte[]
is NULL.MarshallingException
- If there are problems Unmarshalling the double
.public byte[] getBytes(float value) throws MarshallingException
float
into a byte[]
.value
- The float
to be marshalled into a byte[]
.byte[]
representation of the float
.MarshallingException
- If there are problems Marshalling the float
.public float getFloat(byte[] marshalledBytes) throws MarshallingException
byte[]
into a float
.marshalledBytes
- The byte[]
representation of the float
.float
representation of the byte[]
NullPointerException
- If the specified byte[]
is NULL.MarshallingException
- If there are problems Unmarshalling the float
.public byte[] getBytes(String value) throws MarshallingException
String
into a byte[]
.value
- The String
to be marshalled into a byte[]
.byte[]
representation of the String
.NullPointerException
- If the specified String
is NULL.MarshallingException
- If there are problems Marshalling the String
.public String getString(byte[] marshalledBytes) throws MarshallingException
byte[]
into a String
.marshalledBytes
- The byte[]
representation of the String
.String
representation of the byte[]
NullPointerException
- If the specified byte[]
is NULL.MarshallingException
- If there are problems unmarshalling the String
.public byte[] getBytes(int[] sequence) throws MarshallingException
sequence
- The int[] to be marshalled into byte[].NullPointerException
- If the specified int[] is NULL.MarshallingException
- If there are problems Marshalling the int[].public int[] getIntArray(byte[] marshalledBytes) throws MarshallingException
marshalledBytes
- The byte[] that needs to be unmarshalled into an int[].NullPointerException
- If the specified byte[] is NULL.MarshallingException
- If there are problems Unmarshalling the int[].public byte[] getBytes(short[] sequence) throws MarshallingException
sequence
- The short[] to be marshalled into a byte[].NullPointerException
- If the specified short[] is NULL.MarshallingException
- If there are problems Marshalling the short[].public short[] getShortArray(byte[] marshalledBytes) throws MarshallingException
marshalledBytes
- The byte[] that needs to be unmarshalled into a short[].NullPointerException
- If the specified byte[] is NULL.MarshallingException
- If there are problems Unmarshalling the short[].public byte[] getBytes(long[] sequence) throws MarshallingException
sequence
- The long[] to be marshalled into a byte[].NullPointerException
- If the specified long[] is NULL.MarshallingException
- If there are problems Marshalling the long[].public long[] getLongArray(byte[] marshalledBytes) throws MarshallingException
marshalledBytes
- The byte[] that needs to be unmarshalled into a long[].NullPointerException
- If the specified byte[] is NULL.MarshallingException
- If there are problems Unmarshalling the long[].public byte[] getBytes(double[] sequence) throws MarshallingException
sequence
- The double[] to be marshalled into a byte[].NullPointerException
- If the specified double[] is NULL.MarshallingException
- If there are problems Marshalling the double[].public double[] getDoubleArray(byte[] marshalledBytes) throws MarshallingException
marshalledBytes
- The byte[] that needs to be unmarshalled into a double[].NullPointerException
- If the specified byte[] is NULL.MarshallingException
- If there are problems Unmarshalling the double[].public byte[] getBytes(float[] sequence) throws MarshallingException
sequence
- The float[] to be marshalled into a byte[].NullPointerException
- If the specified long[] is NULL.MarshallingException
- If there are problems Marshalling the float[].public float[] getFloatArray(byte[] marshalledBytes) throws MarshallingException
marshalledBytes
- The byte[] that needs to be unmarshalled into a float[].NullPointerException
- If the specified byte[] is NULL.MarshallingException
- If there are problems Unmarshalling the float[].public byte[] getBytes(String[] sequence) throws MarshallingException
sequence
- The String[] to be marshalled into a byte[].NullPointerException
- If the specified long[] is NULL.MarshallingException
- If there are problems Marshalling the String[].public String[] getStringArray(byte[] marshalledBytes) throws MarshallingException
marshalledBytes
- The byte[] that needs to be unmarshalled into a String[].NullPointerException
- If the specified byte[] is NULL.MarshallingException
- If there are problems Unarshalling the String[].public byte[] getBytes(Hashtable<?,?> sequence) throws MarshallingException
sequence
- The Hashtable to be marshalled into a byte[].NullPointerException
- If the specified hashtable is NULL.MarshallingException
- If there are problems Marshalling the hashtable.public Hashtable<?,?> getHashtable(byte[] marshalledBytes) throws MarshallingException
marshalledBytes
- The byte[] that needs to be unmarshalled into a Hashtable.NullPointerException
- If the specified byte[] is NULL.MarshallingException
- If there are problems unmarshalling the Hashtable.public byte[] getBytes(HashMap<?,?> sequence) throws MarshallingException
sequence
- The HashMap to be marshalled into a byte[].NullPointerException
- If the specified hashmap is NULL.MarshallingException
- If there are problems Marshalling the hashmappublic HashMap<?,?> getHashMap(byte[] marshalledBytes) throws MarshallingException
marshalledBytes
- The byte[] that needs to be unmarshalled into a HashMap.NullPointerException
- If the specified byte[] is NULL.MarshallingException
- If there are problems unmarshalling the HashMap.public byte[] getBytes(int[][] matrix) throws MarshallingException
int[][]
into a byte[]
.matrix
- The int[][]
to be marshalled into a byte[]
.byte[]
representation of the int[][]
NullPointerException
- If the specified int[][]
is NULL.MarshallingException
- If there are problems marshalling the int[][]
.public int[][] getInt2DArray(byte[] marshalledBytes) throws MarshallingException
byte[]
into a int[][]
.marshalledBytes
- The byte[]
that needs to be unmarshalled into a
int[][]
.int[][]
representation of the byte[]
NullPointerException
- If the specified byte[] is NULL.MarshallingException
- If there are problems unmarshalling the int[][]
.public byte[] getBytes(short[][] matrix) throws MarshallingException
short[][]
into a byte[]
.matrix
- The short[][]
to be marshalled into a byte[]
.byte[]
representation of the short[][]
NullPointerException
- If the specified short[][]
is NULL.MarshallingException
- If there are problems marshalling the short[][]
.public short[][] getShort2DArray(byte[] marshalledBytes) throws MarshallingException
byte[]
into a short[][]
.marshalledBytes
- The byte[]
that needs to be unmarshalled into a
short[][]
.short[][]
representation of the byte[]
NullPointerException
- If the specified byte[] is NULL.MarshallingException
- If there are problems unmarshalling the short[][]
.public byte[] getBytes(long[][] matrix) throws MarshallingException
long[][]
into a byte[]
.matrix
- The long[][]
to be marshalled into a
byte[]
.byte[]
representation of the long[][]
NullPointerException
- If the specified long[][]
is NULL.MarshallingException
- If there are problems marshalling the long[][]
.public long[][] getLong2DArray(byte[] marshalledBytes) throws MarshallingException
byte[]
into a long[][]
.marshalledBytes
- The byte[]
that needs to be unmarshalled into a
long[][]
.long[][]
representation of the
byte[]
NullPointerException
- If the specified byte[] is NULL.MarshallingException
- If there are problems unmarshalling the long[][]
.public byte[] getBytes(double[][] matrix) throws MarshallingException
double[][]
into a byte[]
.matrix
- The double[][]
to be marshalled into a
byte[]
.byte[]
representation of the double[][]
NullPointerException
- If the specified double[][]
is NULL.MarshallingException
- If there are problems marshalling the double[][]
.public double[][] getDouble2DArray(byte[] marshalledBytes) throws MarshallingException
byte[]
into a double[][]
.marshalledBytes
- The byte[]
that needs to be unmarshalled into a
double[][]
.double[][]
representation of the
byte[]
NullPointerException
- If the specified byte[] is NULL.MarshallingException
- If there are problems unmarshalling the
double[][]
.public byte[] getBytes(float[][] matrix) throws MarshallingException
float[][]
into a byte[]
.matrix
- The float[][]
to be marshalled into a byte[]
.byte[]
representation of the float[][]
NullPointerException
- If the specified float[][]
is NULL.MarshallingException
- If there are problems marshalling the float[][]
.public float[][] getFloat2DArray(byte[] marshalledBytes) throws MarshallingException
byte[]
into a float[][]
.marshalledBytes
- The byte[]
that needs to be unmarshalled into a
float[][]
.float[][]
representation of the
byte[]
NullPointerException
- If the specified byte[] is NULL.MarshallingException
- If there are problems unmarshalling the float[][]
.public byte[] getBytes(Object[] sequence) throws MarshallingException, IOException
Object[]
into a byte[]
.sequence
- The Object[]
to be marshalled into a byte[]
.byte[]
representation of the Object[].NullPointerException
- If the specified Object[]
is NULL.MarshallingException
- If there are problems Marshalling the Object[]
.IOException
public Object[] getObjectArray(byte[] marshalledBytes) throws MarshallingException
byte[]
into an Object[]
.marshalledBytes
- The byte[]
that needs to be unmarshalled into a Object[]
.Object[]
representation of the byte[]
.NullPointerException
- If the specified byte[]
is NULL.MarshallingException
- If there are problems Unmarshalling the Object[]
.Copyright © 2015. All rights reserved.