|
Project JXTA | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.jxta.ext.config.Resource
public class Resource
Constructor Summary | |
---|---|
Resource()
Constructor for the Resource object |
Method Summary | |
---|---|
boolean |
contains(String key)
|
String |
get(String key)
Description of the Method |
String |
get(String key,
String d)
Description of the Method |
List |
getAll(String key)
Gets the all attribute of the Resource object |
List |
getAll(String key,
String d)
Gets the all attribute of the Resource object |
boolean |
getBoolean(String key)
Gets the boolean attribute of the Resource object |
boolean |
getBoolean(String key,
boolean d)
Gets the boolean attribute of the Resource object |
boolean |
getBoolean(String key,
Boolean d)
Gets the boolean attribute of the Resource object |
char |
getChar(String key)
Gets the char attribute of the Resource object |
char |
getChar(String key,
Character d)
Gets the char attribute of the Resource object |
Class |
getClass(String key)
Gets the class attribute of the Resource object |
Class |
getClass(String key,
Class d)
Gets the class attribute of the Resource object |
List |
getClasses(String key)
Gets the classes attribute of the Resource object |
List |
getClasses(String key,
URL d)
Gets the classes attribute of the Resource object |
Color |
getColor(String key)
Gets the color attribute of the Resource object |
Color |
getColor(String key,
Color d)
Gets the color attribute of the Resource object |
float |
getFloat(String key)
Gets the float attribute of the Resource object |
float |
getFloat(String key,
Float d)
Gets the float attribute of the Resource object |
int |
getInt(String key)
Gets the int attribute of the Resource object |
int |
getInt(String key,
int d)
Gets the int attribute of the Resource object |
int |
getInt(String key,
Integer d)
Gets the int attribute of the Resource object |
long |
getLong(String key)
Gets the long attribute of the Resource object |
long |
getLong(String key,
long d)
Gets the long attribute of the Resource object |
long |
getLong(String key,
Long d)
Gets the long attribute of the Resource object |
Resource |
getResource(String key)
|
InputStream |
getResourceAsStream(String resource)
Gets the resourceAsStream attribute of the Resource object |
InputStream |
getResourceAsStream(String resource,
Class clazz)
Gets the resourceAsStream attribute of the Resource object |
List |
getResources(String key)
|
URI |
getURI(String key)
Gets the URI attribute of the Resource object |
URI |
getURI(String key,
URI d)
Gets the URI attribute of the Resource object |
List |
getURIs(String key)
Gets the URIs attribute of the Resource object |
List |
getURIs(String key,
URI d)
Gets the URIs attribute of the Resource object |
URL |
getURL(String key)
Gets the URL attribute of the Resource object |
URL |
getURL(String key,
URL d)
Gets the URL attribute of the Resource object |
List |
getURLs(String key)
Gets the URLs attribute of the Resource object |
List |
getURLs(String key,
URL d)
Gets the URLs attribute of the Resource object |
void |
load(File resource)
Description of the Method |
void |
load(InputStream is)
Description of the Method |
void |
load(String resource)
Description of the Method |
void |
load(String resource,
Class clazz)
Description of the Method |
void |
load(URL resource)
Description of the Method |
void |
set(String key)
Description of the Method |
void |
set(String key,
String value)
Description of the Method |
String |
toString()
Description of the Method |
static URL |
toURL(File f)
Description of the Method |
static URL |
toURL(String s)
Description of the Method |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Resource()
Method Detail |
---|
public static URL toURL(String s) throws ConversionException
s
- Description of the Parameter
ConversionException
- Description of the Exceptionpublic static URL toURL(File f) throws ConversionException
f
- Description of the Parameter
ConversionException
- Description of the Exceptionpublic void load(URL resource) throws ResourceNotFoundException
resource
- Description of the Parameter
ResourceNotFoundException
- Description of the Exceptionpublic void load(String resource) throws ResourceNotFoundException
resource
- Description of the Parameter
ResourceNotFoundException
- Description of the Exceptionpublic void load(File resource) throws ResourceNotFoundException, MalformedURLException
resource
- Description of the Parameter
ResourceNotFoundException
- Description of the Exception
MalformedURLException
- Description of the Exceptionpublic void load(String resource, Class clazz) throws ResourceNotFoundException
resource
- Description of the Parameterclazz
- Description of the Parameter
ResourceNotFoundException
- Description of the Exceptionpublic void load(InputStream is) throws ResourceNotFoundException
is
- Description of the Parameter
ResourceNotFoundException
- Description of the Exceptionpublic InputStream getResourceAsStream(String resource)
resource
- Description of the Parameter
public InputStream getResourceAsStream(String resource, Class clazz)
resource
- Description of the Parameterclazz
- Description of the Parameter
public String get(String key)
key
- Description of the Parameter
public String get(String key, String d)
key
- Description of the Parameterd
- Description of the Parameter
public int getInt(String key) throws ConversionException
key
- Description of the Parameter
ConversionException
- Description of the Exceptionpublic int getInt(String key, int d)
key
- Description of the Parameterd
- Description of the Parameter
public int getInt(String key, Integer d) throws ConversionException
key
- Description of the Parameterd
- Description of the Parameter
ConversionException
- Description of the Exceptionpublic long getLong(String key) throws ConversionException
key
- Description of the Parameter
ConversionException
- Description of the Exceptionpublic long getLong(String key, long d)
key
- Description of the Parameterd
- Description of the Parameter
public long getLong(String key, Long d) throws ConversionException
key
- Description of the Parameterd
- Description of the Parameter
ConversionException
- Description of the Exceptionpublic float getFloat(String key) throws ConversionException
key
- Description of the Parameter
ConversionException
- Description of the Exceptionpublic float getFloat(String key, Float d) throws ConversionException
key
- Description of the Parameterd
- Description of the Parameter
ConversionException
- Description of the Exceptionpublic boolean getBoolean(String key)
key
- Description of the Parameter
public boolean getBoolean(String key, boolean d)
key
- Description of the Parameterd
- Description of the Parameter
public boolean getBoolean(String key, Boolean d)
key
- Description of the Parameterd
- Description of the Parameter
public char getChar(String key) throws ConversionException
key
- Description of the Parameter
ConversionException
- Description of the Exceptionpublic char getChar(String key, Character d) throws ConversionException
key
- Description of the Parameterd
- Description of the Parameter
ConversionException
- Description of the Exceptionpublic URL getURL(String key) throws ConversionException
key
- Description of the Parameter
ConversionException
- Description of the Exceptionpublic URL getURL(String key, URL d) throws ConversionException
key
- Description of the Parameterd
- Description of the Parameter
ConversionException
- Description of the Exceptionpublic List getURLs(String key) throws ConversionException
key
- Description of the Parameter
ConversionException
- Description of the Exceptionpublic List getURLs(String key, URL d) throws ConversionException
key
- Description of the Parameterd
- Description of the Parameter
ConversionException
- Description of the Exceptionpublic URI getURI(String key) throws ConversionException
key
- Description of the Parameter
ConversionException
- Description of the Exceptionpublic URI getURI(String key, URI d) throws ConversionException
key
- Description of the Parameterd
- Description of the Parameter
ConversionException
- Description of the Exceptionpublic List getURIs(String key) throws ConversionException
key
- Description of the Parameter
ConversionException
- Description of the Exceptionpublic List getURIs(String key, URI d) throws ConversionException
key
- Description of the Parameterd
- Description of the Parameter
ConversionException
- Description of the Exceptionpublic Color getColor(String key) throws ConversionException
key
- Description of the Parameter
ConversionException
- Description of the Exceptionpublic Color getColor(String key, Color d) throws ConversionException
key
- Description of the Parameterd
- Description of the Parameter
ConversionException
- Description of the Exceptionpublic Resource getResource(String key)
public List getResources(String key)
public Class getClass(String key) throws ConversionException
key
- Description of the Parameter
ConversionException
- Description of the Exceptionpublic Class getClass(String key, Class d) throws ConversionException
key
- Description of the Parameterd
- Description of the Parameter
ConversionException
- Description of the Exceptionpublic List getClasses(String key) throws ConversionException
key
- Description of the Parameter
ConversionException
- Description of the Exceptionpublic List getClasses(String key, URL d) throws ConversionException
key
- Description of the Parameterd
- Description of the Parameter
ConversionException
- Description of the Exceptionpublic void set(String key)
key
- Description of the Parameterpublic void set(String key, String value)
key
- Description of the Parametervalue
- Description of the Parameterpublic List getAll(String key)
key
- Description of the Parameter
public List getAll(String key, String d)
key
- Description of the Parameterd
- Description of the Parameter
public boolean contains(String key)
public String toString()
toString
in class Object
|
JXTA J2SE | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |