|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--jcifs.util.Config
This class uses a static PropertiesTree
to act as a
cental repository of configuration information. When initialized for the
first time the system properties will constitute it's initial properties.
See also Setting JCIFS Properties
Constructor Summary | |
Config()
|
Method Summary | |
static Object |
get(String key)
Retrieve a property from the static PropertiesTree. |
static boolean |
getBoolean(String key,
boolean def)
Retrieve a boolean value. |
static InetAddress |
getInetAddress(String key,
InetAddress def)
Retrieve an address from the PropertiesTree and return as InetAddress. |
static int |
getInt(String key)
Retrieve an int from the PropertiesTree. |
static int |
getInt(String key,
int def)
|
static String |
getProperty(String key)
Retrieve a property from the static PropertiesTree. |
static String |
getProperty(String key,
String def)
Retrieve a property from the static PropertiesTree. |
static void |
init()
This method is actually empty. |
static Object |
setProperty(String key,
String value)
Put a property into the static PropertiesTree. |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Constructor Detail |
public Config()
Method Detail |
public static void init()
public static Object setProperty(String key, String value)
public static Object get(String key)
public static String getProperty(String key, String def)
public static String getProperty(String key)
public static int getInt(String key, int def)
public static int getInt(String key)
public static InetAddress getInetAddress(String key, InetAddress def)
public static boolean getBoolean(String key, boolean def)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |