|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.didion.jwnl.JWNL
public final 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. |
static class |
JWNL.Version
Represents a version of WordNet. |
Field Summary | |
---|---|
static JWNL.OS[] |
DEFINED_OS_ARRAY
|
static JWNL.OS |
MAC
|
static java.lang.String |
OS_PROPERTY_NAME
|
static JWNL.OS |
UNDEFINED
|
static JWNL.OS |
UNIX
|
static JWNL.OS |
WINDOWS
|
Method Summary | |
---|---|
static double |
getJavaVersion()
|
static JWNL.OS |
getOS()
Get the current OS. |
static java.util.ResourceBundle |
getResourceBundle()
|
static JWNL.Version |
getVersion()
Get the current WordNet version |
static void |
initialize(java.io.InputStream propertiesStream)
Parses a properties file and sets the ready state at various points. |
static boolean |
isInitialized()
|
static java.lang.String |
resolveMessage(java.lang.String msg)
Resolve msg in one of the resource bundles used by the system |
static java.lang.String |
resolveMessage(java.lang.String msg,
java.lang.Object obj)
Resolve msg in one of the resource bundles used by the system. |
static java.lang.String |
resolveMessage(java.lang.String msg,
java.lang.Object[] params)
Resolve msg in one of the resource bundles used by the system |
static void |
shutdown()
|
Methods inherited from class java.lang.Object |
---|
equals, 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 java.lang.String OS_PROPERTY_NAME
Method Detail |
---|
public static void initialize(java.io.InputStream propertiesStream) throws JWNLException
propertiesStream
- the properties file stream
JWNLException
- various JWNL exceptions, depending on where this failspublic static boolean isInitialized()
public static JWNL.OS getOS()
public static double getJavaVersion()
public static JWNL.Version getVersion()
public static java.util.ResourceBundle getResourceBundle()
public static java.lang.String resolveMessage(java.lang.String msg)
public static java.lang.String resolveMessage(java.lang.String msg, java.lang.Object obj)
obj
- parameter to insert into the resolved messagepublic static java.lang.String resolveMessage(java.lang.String msg, java.lang.Object[] params)
params
- parameters to insert into the resolved messagepublic static void shutdown()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |