public final class JWNL extends Object
Modifier and Type | Class and Description |
---|---|
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.
|
Modifier and Type | Field and Description |
---|---|
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 |
Modifier and Type | Method and Description |
---|---|
static double |
getJavaVersion() |
static JWNL.OS |
getOS()
Get the current OS.
|
static ResourceBundle |
getResourceBundle() |
static JWNL.Version |
getVersion()
Get the current WordNet version
|
static void |
initialize(InputStream propertiesStream)
Parses a properties file and sets the ready state at various points.
|
static boolean |
isInitialized() |
static String |
resolveMessage(String msg)
Resolve 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
|
static void |
shutdown() |
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
public static void initialize(InputStream propertiesStream) throws JWNLException
propertiesStream
- the properties file streamJWNLException
- 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 ResourceBundle getResourceBundle()
public static String resolveMessage(String msg)
public static String resolveMessage(String msg, Object obj)
obj
- parameter to insert into the resolved messagepublic static String resolveMessage(String msg, Object[] params)
params
- parameters to insert into the resolved messagepublic static void shutdown()
Copyright © 2019. All rights reserved.