Class Conversion
package: src.net.jxta.ext.config
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
toBoolean(String s)
   Description of the Method
 
public static char
toChar(String s)
   Description of the Method
 
public static Class
toClass(String s)
   Description of the Method
 
public static List
toClasses(List l)
   Description of the Method
 
public static Color
toColor(String s)
   Description of the Method
 
public static File
toFile(URI u)
   Description of the Method
 
public static float
toFloat(String s)
   Description of the Method
 
public static int
toInt(String s)
   Description of the Method
 
public static long
toLong(String s)
   Description of the Method
 
public static URI
toURI(String s)
   Description of the Method
 
public static List
toURIs(List l)
   Description of the Method
 
public static URL
toURL(File f)
   Description of the Method
 
public static URL
toURL(String s)
   Description of the Method
 
public static List
toURLs(List l)
   Description of the Method
 
Field Detail
BOGUS
private final static String BOGUS = "bogus"

COLON
private final static char COLON = ':'

ENCODING_UTF8
private final static String ENCODING_UTF8 = "UTF-8"

ESCAPE
private final static char[] ESCAPE = { SLASH, COLON, '?', '#', '@', PERCENT }

PERCENT
private final static char PERCENT = '%'

SLASH
private final static char SLASH = '/'

URI_FILE
private final static String URI_FILE = "file" + COLON + SLASH
Method Detail
toBoolean
public static boolean toBoolean(String s)
Description of the Method
Parameters:
s Description of the Parameter
Return:
Description of the Return Value

toChar
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

toClass
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

toClasses
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

toColor
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

toFile
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

toFloat
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

toInt
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

toLong
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

toURI
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

toURIs
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

toURL
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

toURL
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

toURLs
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