public class Conversion
Author:
james todd [gonzo at jxta dot org]
Version:
$Id: Conversion.java,v 1.12 2004/07/31 07:44:33 gonzo Exp $
| Field Summary |
private final static String |
|
private final static char |
|
private final static String |
|
private final static char[] |
|
private final static char |
|
private final static char |
|
private final static String |
|
| Method Summary |
public static boolean |
Description of the Method |
public static char |
Description of the Method |
public static Class |
Description of the Method |
public static List |
Description of the Method |
public static Color |
Description of the Method |
public static File |
Description of the Method |
public static float |
Description of the Method |
public static int |
Description of the Method |
public static long |
Description of the Method |
public static URI |
Description of the Method |
public static List |
Description of the Method |
public static URL |
Description of the Method |
public static URL |
Description of the Method |
public static List |
Description of the Method |
private final static String BOGUS = "bogus"
private final static char COLON = ':'
private final static String ENCODING_UTF8 = "UTF-8"
private final static char[] ESCAPE = { SLASH, COLON, '?', '#', '@', PERCENT }
private final static char PERCENT = '%'
private final static char SLASH = '/'
private final static String URI_FILE = "file" + COLON + SLASH
public static boolean toBoolean(String s)
Description of the Method
Parameters:
s Description of the Parameter
Return:
Description of the Return Value
public static char toChar(String s)
Description of the Method
Throws:
ConversionException
Parameters:
s Description of the Parameter
Return:
Description of the Return Value
Exceptions:
ConversionException Description of the Exception
public static Class toClass(String s)
Description of the Method
Throws:
ConversionException
Parameters:
s Description of the Parameter
Return:
Description of the Return Value
Exceptions:
ConversionException Description of the Exception
public static List toClasses(List l)
Description of the Method
Throws:
ConversionException
Parameters:
l Description of the Parameter
Return:
Description of the Return Value
Exceptions:
ConversionException Description of the Exception
public static Color toColor(String s)
Description of the Method
Throws:
ConversionException
Parameters:
s Description of the Parameter
Return:
Description of the Return Value
Exceptions:
ConversionException Description of the Exception
public static File toFile(URI u)
Description of the Method
Throws:
ConversionException
Parameters:
u Description of the Parameter
Return:
Description of the Return Value
Exceptions:
ConversionException Description of the Exception
public static float toFloat(String s)
Description of the Method
Throws:
ConversionException
Parameters:
s Description of the Parameter
Return:
Description of the Return Value
Exceptions:
ConversionException Description of the Exception
public static int toInt(String s)
Description of the Method
Throws:
ConversionException
Parameters:
s Description of the Parameter
Return:
Description of the Return Value
Exceptions:
ConversionException Description of the Exception
public static long toLong(String s)
Description of the Method
Throws:
ConversionException
Parameters:
s Description of the Parameter
Return:
Description of the Return Value
Exceptions:
ConversionException Description of the Exception
public static URI toURI(String s)
Description of the Method
Throws:
ConversionException
Parameters:
s Description of the Parameter
Return:
Description of the Return Value
Exceptions:
ConversionException Description of the Exception
public static List toURIs(List l)
Description of the Method
Throws:
ConversionException
Parameters:
l Description of the Parameter
Return:
Description of the Return Value
Exceptions:
ConversionException Description of the Exception
public static URL toURL(String s)
Description of the Method
Throws:
ConversionException
Parameters:
s Description of the Parameter
Return:
Description of the Return Value
Exceptions:
ConversionException Description of the Exception
public static URL toURL(File f)
Description of the Method
Throws:
ConversionException
Parameters:
f Description of the Parameter
Return:
Description of the Return Value
Exceptions:
ConversionException Description of the Exception
public static List toURLs(List l)
Description of the Method
Throws:
ConversionException
Parameters:
l Description of the Parameter
Return:
Description of the Return Value
Exceptions:
ConversionException Description of the Exception