Class JWNL
java.lang.Object
net.didion.jwnl.JWNL
Contains system info as well as JWNL properties.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classUsed to create constants that represent the major categories of operating systems.static final classRepresents a version of WordNet. -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic doublestatic JWNL.OSgetOS()Get the current OS.static ResourceBundlestatic JWNL.VersionGet the current WordNet versionstatic voidinitialize(InputStream propertiesStream) Parses a properties file and sets the ready state at various points.static booleanstatic StringresolveMessage(String msg) Resolve msg in one of the resource bundles used by the systemstatic StringresolveMessage(String msg, Object obj) Resolve msg in one of the resource bundles used by the system.static StringresolveMessage(String msg, Object[] params) Resolve msg in one of the resource bundles used by the systemstatic voidshutdown()
-
Field Details
-
WINDOWS
-
UNIX
-
MAC
-
UNDEFINED
-
DEFINED_OS_ARRAY
-
OS_PROPERTY_NAME
- See Also:
-
-
Method Details
-
initialize
Parses a properties file and sets the ready state at various points. Initializes the various PointerType, Adjective, and VerbFrame necessary preprocessing items.- Parameters:
propertiesStream- the properties file stream- Throws:
JWNLException- various JWNL exceptions, depending on where this fails
-
isInitialized
public static boolean isInitialized() -
getOS
Get the current OS. -
getJavaVersion
public static double getJavaVersion() -
getVersion
Get the current WordNet version -
getResourceBundle
-
resolveMessage
-
resolveMessage
-
resolveMessage
-
shutdown
public static void shutdown()
-