public class ConversionHelper extends Object
ConversionHelper class is used for converting values carried by messages into
 specified types, if possible.| Constructor and Description | 
|---|
ConversionHelper()  | 
| Modifier and Type | Method and Description | 
|---|---|
static boolean | 
getBoolean(Object value)
Convert value to boolean 
 | 
static byte | 
getByte(Object value)
Convert value to byte 
 | 
static byte[] | 
getBytes(Object value)
Convert value to byte[] 
 | 
static char | 
getChar(Object value)
Convert value to char 
 | 
static double | 
getDouble(Object value)
Convert value to double 
 | 
static float | 
getFloat(Object value)
Convert value to float 
 | 
static int | 
getInt(Object value)
Convert value to int 
 | 
static long | 
getLong(Object value)
Convert value to long 
 | 
static short | 
getShort(Object value)
Convert value to short 
 | 
static String | 
getString(Object value)
Convert value to String 
 | 
public static boolean getBoolean(Object value) throws javax.jms.MessageFormatException
value - the object to convert fromjavax.jms.MessageFormatException - if the conversion is invalidpublic static byte getByte(Object value) throws javax.jms.MessageFormatException
value - the object to convert fromjavax.jms.MessageFormatException - if the conversion is invalidNumberFormatException - if value is a String and the conversion is invalidpublic static short getShort(Object value) throws javax.jms.MessageFormatException
value - the object to convert fromjavax.jms.MessageFormatException - if the conversion is invalidNumberFormatException - if value is a String and the conversion is invalidpublic static char getChar(Object value) throws javax.jms.MessageFormatException
value - the object to convert fromjavax.jms.MessageFormatException - if the conversion is invalidNullPointerException - if value is nullpublic static int getInt(Object value) throws javax.jms.MessageFormatException
value - the object to convert fromjavax.jms.MessageFormatException - if the conversion is invalidNumberFormatException - if value is a String and the conversion is invalidpublic static long getLong(Object value) throws javax.jms.MessageFormatException
value - the object to convert fromjavax.jms.MessageFormatException - if the conversion is invalidNumberFormatException - if value is a String and the conversion is invalidpublic static float getFloat(Object value) throws javax.jms.MessageFormatException
value - the object to convert fromjavax.jms.MessageFormatException - if the conversion is invalidNumberFormatException - if value is a String and the conversion is invalidpublic static double getDouble(Object value) throws javax.jms.MessageFormatException
value - the object to convert fromjavax.jms.MessageFormatException - if the conversion is invalidNumberFormatException - if value is a String and the conversion is invalidpublic static String getString(Object value) throws javax.jms.MessageFormatException
value - the object to convert fromjavax.jms.MessageFormatException - if the conversion is invalidpublic static byte[] getBytes(Object value) throws javax.jms.MessageFormatException
value - the object to convert from. This must be a byte array, or nulljavax.jms.MessageFormatException - if value is not a byte array or is not nullCopyright © GigaSpaces.