|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.crosswire.common.util.Convert
public class Convert
Conversions between various types and Strings.
Distribution Licence: JSword is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License, version 2 as published by the Free Software Foundation. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. The License is available on the internet here, or by writing to: Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA The copyright to this program is held by it's authors. |
Licence
Field Summary | |
---|---|
private static 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 commands)
Convert a Hashtable 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 Map |
string2Hashtable(String data,
Class superclass)
Convert a String to a Hashtable, with type checking |
static int |
string2Int(String data)
Convert a String to an int |
static Map |
string2Map(String data)
Convert a String to a Hashtable, 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 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 Map string2Hashtable(String data, Class superclass)
data
- the thing to convert
public static Map string2Map(String data)
data
- the thing to convert
public static String map2String(Map 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-2004 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |