|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.jlogger.util.GlobalProperties
Title: JLogger
Description: Java Based Logging Utility
Copyright: Copyright (c) 2002
Company: GeraSunil.com
Constructor Summary | |
GlobalProperties(java.io.InputStream is)
Con with InputStream as parameter |
|
GlobalProperties(java.lang.String fileName)
Con with parameter File name as String **Note: Not supported now |
Method Summary | |
static java.util.Properties |
getProperties()
getProperties - returns the Properties obj |
static java.lang.String |
getProperty(java.lang.String key)
getProperty - Returns the property value for the given key |
static java.lang.String |
getProperty(java.lang.String key,
java.lang.String defaultValue)
getProperty - returns the property value for the key&default value combination |
static void |
list(java.io.PrintStream out)
list - Lists all the properties from file |
Methods inherited from class java.lang.Object |
|
Constructor Detail |
public GlobalProperties(java.lang.String fileName) throws java.lang.Exception
fileName
- Stringjava.lang.Exception
- on load fail for propertiespublic GlobalProperties(java.io.InputStream is) throws java.lang.Exception
is
- InputStreamjava.lang.Exception
- on load fail for propertiesMethod Detail |
public static java.lang.String getProperty(java.lang.String key) throws java.lang.Exception
key
- Stringjava.lang.Exception
- on null valuespublic static java.lang.String getProperty(java.lang.String key, java.lang.String defaultValue) throws java.lang.Exception
key
- StringdefaultValue
- Stringjava.lang.Exception
- public static void list(java.io.PrintStream out)
out
- PrintStreampublic static java.util.Properties getProperties()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |