public class Converter
extends java.lang.Object
Constructor and Description |
---|
Converter() |
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
fromBoolean(boolean val)
Converts the specified bool value to string.
|
static java.lang.String |
fromByte(java.lang.Byte val)
Converts the specified byte value to string.
|
static java.lang.String |
fromChar(char val)
Converts the specified char value to string.
|
static java.lang.String |
fromColor(java.awt.Color val)
Converts the specified color value to string in the format #AARRGGBB.
|
static java.lang.String |
fromDouble(double val)
Converts the specified double value to string.
|
static java.lang.String |
fromImage(java.awt.Image val)
Converts the specified image to string.
|
static java.lang.String |
fromSingle(float val)
Converts the specified float value to string.
|
static java.awt.Image |
imageFromString(java.lang.String s)
Converts the specified string value to image.
|
static boolean |
toBoolean(java.lang.String s)
Converts the specified string value to bool.
|
static byte |
toByte(java.lang.String s)
Converts the specified string value to byte value.
|
static char |
toChar(java.lang.String s)
Converts the specified string value to char.
|
static java.awt.Color |
toColor(java.lang.String s)
Converts the specified string value to Color.
|
static double |
toDouble(java.lang.String s)
Converts the specified string value to double.
|
static java.awt.Image |
toImage(java.lang.String s)
Converts the specified string value to image.
|
static float |
toSingle(java.lang.String s)
Converts the specified string value to float.
|
public static boolean toBoolean(java.lang.String s)
s
- The string value to convert from.public static java.lang.String fromBoolean(boolean val)
val
- The value to convert.public static float toSingle(java.lang.String s)
s
- The string value to convert from.public static java.lang.String fromSingle(float val)
val
- The value to convert.public static double toDouble(java.lang.String s)
s
- The string value to convert from.public static java.lang.String fromDouble(double val)
val
- The value to convert.public static byte toByte(java.lang.String s)
s
- The string value to convert from.public static java.lang.String fromByte(java.lang.Byte val)
val
- The value to convert.public static char toChar(java.lang.String s)
s
- The string value to convert from.public static java.lang.String fromChar(char val)
val
- The value to convert.public static java.awt.Color toColor(java.lang.String s)
s
- The string value to convert from.public static java.lang.String fromColor(java.awt.Color val)
val
- The value to convert.public static java.awt.Image imageFromString(java.lang.String s) throws java.io.IOException
s
- The string value to convert from.java.io.IOException
public static java.awt.Image toImage(java.lang.String s)
public static java.lang.String fromImage(java.awt.Image val)
val
- The image object to convert.