|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.crosswire.common.util.Convert
public final class Convert
Conversions between various types and Strings.
for license details.
The copyright to this program is held by it's authors.
Field Summary | |
---|---|
private static org.slf4j.Logger |
log
The log stream |
Constructor Summary | |
---|---|
private |
Convert()
We don't want anyone doing this ... |
Method Summary | |
---|---|
static String |
boolean2String(boolean data)
Convert a boolean to a String |
static String |
class2String(Class<?> data)
Convert a Class to a String |
static String |
int2String(int data)
Convert an int to a String |
static String |
map2String(Map<? extends Object,? extends Object> commands)
Convert a Map to a Sting |
static String |
object2String(Object data)
Convert an Object to a String |
static boolean |
string2Boolean(String data)
Convert a String to a boolean |
static Class<?> |
string2Class(String data)
Convert a String to a Class |
static PropertyMap |
string2Hashtable(String data,
Class<?> superclass)
Convert a String to a Map, with type checking |
static int |
string2Int(String data)
Convert a String to an int |
static PropertyMap |
string2Map(String data)
Convert a String to a Map, without type checking |
static Object |
string2Object(String data)
Convert a String to an Object |
static String[] |
string2StringArray(String value,
String separator)
Convert a String to a StringArray |
static String |
stringArray2String(String[] value,
String separator)
Convert a StringArray to a String |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private static final org.slf4j.Logger log
Constructor Detail |
---|
private Convert()
Method Detail |
---|
public static boolean string2Boolean(String data)
data
- the thing to convert
public static String boolean2String(boolean data)
data
- the thing to convert
public static int string2Int(String data)
data
- the thing to convert
public static String int2String(int data)
data
- the thing to convert
public static Object string2Object(String data) throws InstantiationException, ClassNotFoundException, IllegalAccessException
data
- the thing to convert
InstantiationException
ClassNotFoundException
IllegalAccessException
public static String object2String(Object data)
data
- the thing to convert
public static Class<?> string2Class(String data) throws ClassNotFoundException
data
- the thing to convert
ClassNotFoundException
public static String class2String(Class<?> data)
data
- the thing to convert
public static PropertyMap string2Hashtable(String data, Class<?> superclass)
data
- the thing to convert
public static PropertyMap string2Map(String data)
data
- the thing to convert
public static String map2String(Map<? extends Object,? extends Object> commands)
commands
- the thing to convert
public static String[] string2StringArray(String value, String separator)
value
- the thing to convert
public static String stringArray2String(String[] value, String separator)
value
- the thing to convert
|
Copyright ? 2003-2011 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |