Project JXTA

net.jxta.ext.config
Class Conversion

java.lang.Object
  extended by net.jxta.ext.config.Conversion

public class Conversion
extends Object

Version:
$Id: Conversion.java,v 1.12 2004/07/31 07:44:33 gonzo Exp $
Author:
james todd [gonzo at jxta dot org]

Constructor Summary
Conversion()
           
 
Method Summary
static boolean toBoolean(String s)
          Description of the Method
static char toChar(String s)
          Description of the Method
static Class toClass(String s)
          Description of the Method
static List toClasses(List l)
          Description of the Method
static Color toColor(String s)
          Description of the Method
static File toFile(URI u)
          Description of the Method
static float toFloat(String s)
          Description of the Method
static int toInt(String s)
          Description of the Method
static long toLong(String s)
          Description of the Method
static URI toURI(String s)
          Description of the Method
static List toURIs(List l)
          Description of the Method
static URL toURL(File f)
          Description of the Method
static URL toURL(String s)
          Description of the Method
static List toURLs(List l)
          Description of the Method
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Conversion

public Conversion()
Method Detail

toChar

public static char toChar(String s)
                   throws ConversionException
Description of the Method

Parameters:
s - Description of the Parameter
Returns:
Description of the Return Value
Throws:
ConversionException - Description of the Exception

toInt

public static int toInt(String s)
                 throws ConversionException
Description of the Method

Parameters:
s - Description of the Parameter
Returns:
Description of the Return Value
Throws:
ConversionException - Description of the Exception

toLong

public static long toLong(String s)
                   throws ConversionException
Description of the Method

Parameters:
s - Description of the Parameter
Returns:
Description of the Return Value
Throws:
ConversionException - Description of the Exception

toFloat

public static float toFloat(String s)
                     throws ConversionException
Description of the Method

Parameters:
s - Description of the Parameter
Returns:
Description of the Return Value
Throws:
ConversionException - Description of the Exception

toBoolean

public static boolean toBoolean(String s)
Description of the Method

Parameters:
s - Description of the Parameter
Returns:
Description of the Return Value

toURL

public static URL toURL(String s)
                 throws ConversionException
Description of the Method

Parameters:
s - Description of the Parameter
Returns:
Description of the Return Value
Throws:
ConversionException - Description of the Exception

toURL

public static URL toURL(File f)
                 throws ConversionException
Description of the Method

Parameters:
f - Description of the Parameter
Returns:
Description of the Return Value
Throws:
ConversionException - Description of the Exception

toURLs

public static List toURLs(List l)
                   throws ConversionException
Description of the Method

Parameters:
l - Description of the Parameter
Returns:
Description of the Return Value
Throws:
ConversionException - Description of the Exception

toURI

public static URI toURI(String s)
                 throws ConversionException
Description of the Method

Parameters:
s - Description of the Parameter
Returns:
Description of the Return Value
Throws:
ConversionException - Description of the Exception

toURIs

public static List toURIs(List l)
                   throws ConversionException
Description of the Method

Parameters:
l - Description of the Parameter
Returns:
Description of the Return Value
Throws:
ConversionException - Description of the Exception

toFile

public static File toFile(URI u)
                   throws ConversionException
Description of the Method

Parameters:
u - Description of the Parameter
Returns:
Description of the Return Value
Throws:
ConversionException - Description of the Exception

toColor

public static Color toColor(String s)
                     throws ConversionException
Description of the Method

Parameters:
s - Description of the Parameter
Returns:
Description of the Return Value
Throws:
ConversionException - Description of the Exception

toClass

public static Class toClass(String s)
                     throws ConversionException
Description of the Method

Parameters:
s - Description of the Parameter
Returns:
Description of the Return Value
Throws:
ConversionException - Description of the Exception

toClasses

public static List toClasses(List l)
                      throws ConversionException
Description of the Method

Parameters:
l - Description of the Parameter
Returns:
Description of the Return Value
Throws:
ConversionException - Description of the Exception

JXTA J2SE