com.caucho.jms.message
Class ObjectConverter

java.lang.Object
  extended by com.caucho.jms.message.ObjectConverter

public class ObjectConverter
extends java.lang.Object

A basic message.


Constructor Summary
ObjectConverter()
           
 
Method Summary
static boolean toBoolean(java.lang.Object obj)
          Returns an object converted to a boolean.
static byte toByte(java.lang.Object obj)
          Returns a property as a byte
static byte[] toBytes(java.lang.Object obj)
          Returns a property as a byte[]
static char toChar(java.lang.Object obj)
          Returns a property as a char
static double toDouble(java.lang.Object obj)
          Returns a property as a double
static float toFloat(java.lang.Object obj)
          Returns a property as a float
static int toInt(java.lang.Object obj)
          Returns a property as an integer
static long toLong(java.lang.Object obj)
          Returns a property as a long
static short toShort(java.lang.Object obj)
          Returns a property as a short
static java.lang.String toString(java.lang.Object obj)
          Returns a property as a string
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ObjectConverter

public ObjectConverter()
Method Detail

toBoolean

public static boolean toBoolean(java.lang.Object obj)
                         throws JMSException
Returns an object converted to a boolean.

Throws:
JMSException

toByte

public static byte toByte(java.lang.Object obj)
                   throws JMSException
Returns a property as a byte

Throws:
JMSException

toShort

public static short toShort(java.lang.Object obj)
                     throws JMSException
Returns a property as a short

Throws:
JMSException

toInt

public static int toInt(java.lang.Object obj)
                 throws JMSException
Returns a property as an integer

Throws:
JMSException

toLong

public static long toLong(java.lang.Object obj)
                   throws JMSException
Returns a property as a long

Throws:
JMSException

toFloat

public static float toFloat(java.lang.Object obj)
                     throws JMSException
Returns a property as a float

Throws:
JMSException

toDouble

public static double toDouble(java.lang.Object obj)
                       throws JMSException
Returns a property as a double

Throws:
JMSException

toString

public static java.lang.String toString(java.lang.Object obj)
                                 throws JMSException
Returns a property as a string

Throws:
JMSException

toChar

public static char toChar(java.lang.Object obj)
                   throws JMSException
Returns a property as a char

Throws:
JMSException

toBytes

public static byte[] toBytes(java.lang.Object obj)
                      throws JMSException
Returns a property as a byte[]

Throws:
JMSException