|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sf.extjwnl.JWNL
public class JWNL
Contains system info as well as JWNL properties.
Nested Class Summary | |
---|---|
static class |
JWNL.OS
Used to create constants that represent the major categories of operating systems. |
Field Summary | |
---|---|
static JWNL.OS[] |
DEFINED_OS_ARRAY
|
static JWNL.OS |
MAC
|
static String |
OS_PROPERTY_NAME
|
static JWNL.OS |
UNDEFINED
|
static JWNL.OS |
UNIX
|
static JWNL.OS |
WINDOWS
|
Method Summary | |
---|---|
static JWNL.OS |
getOS()
Returns the current OS. |
static ResourceBundle |
getResourceBundle()
|
static ResourceBundleSet |
getResourceBundleSet()
|
static void |
initialize()
|
static void |
initialize(InputStream propertiesStream)
Parses a properties file and sets the ready state at various points. |
static String |
resolveMessage(String msg)
Resolves msg in one of the resource bundles used by the system |
static String |
resolveMessage(String msg,
Object obj)
Resolve msg in one of the resource bundles used by the system. |
static String |
resolveMessage(String msg,
Object[] params)
Resolve msg in one of the resource bundles used by the system |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final JWNL.OS WINDOWS
public static final JWNL.OS UNIX
public static final JWNL.OS MAC
public static final JWNL.OS UNDEFINED
public static final JWNL.OS[] DEFINED_OS_ARRAY
public static final String OS_PROPERTY_NAME
Method Detail |
---|
public static void initialize()
public static void initialize(InputStream propertiesStream) throws JWNLException
propertiesStream
- the properties file stream
JWNLException
- various JWNL exceptions, depending on where this failspublic static JWNL.OS getOS()
public static ResourceBundle getResourceBundle()
public static ResourceBundleSet getResourceBundleSet()
public static String resolveMessage(String msg)
msg
- message to resolve
public static String resolveMessage(String msg, Object obj)
msg
- message to resolveobj
- parameter to insert into the resolved message
public static String resolveMessage(String msg, Object[] params)
msg
- message to resolveparams
- parameters to insert into the resolved message
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |