org.objectweb.joram.shared.messages
Class ConversionHelper
java.lang.Object
org.objectweb.joram.shared.messages.ConversionHelper
public class ConversionHelper
extends java.lang.Object
The ConversionHelper
class is used for converting values
carried by messages into specified types, if possible.
static boolean | toBoolean(Object value) - Gets the boolean value of the given object.
|
static byte | toByte(Object value) - Gets the byte value of the given object.
|
static byte[] | toBytes(Object value) - Gets the bytes value of the given object.
|
static char | toChar(Object value) - Gets the char value of the given object.
|
static double | toDouble(Object value) - Gets the double value of the given object.
|
static float | toFloat(Object value) - Gets the float value of the given object.
|
static int | toInt(Object value) - Gets the int value of the given object.
|
static long | toLong(Object value) - Gets the long value of the given object.
|
static short | toShort(Object value) - Gets the short value of the given object.
|
static String | toString(Object value) - Gets the String value of the given object.
|
toBoolean
public static boolean toBoolean(Object value)
throws MessageValueException
Gets the boolean value of the given object.
MessageValueException
- If the given object can't be converted
into a boolean value.
toString
public static String toString(Object value)
Gets the String value of the given object.
Copyright B) 2004 Scalagent - All rights reserved