net.didion.jwnl
Class JWNL

java.lang.Object
  |
  +--net.didion.jwnl.JWNL

public final class JWNL
extends java.lang.Object

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 MAC
           
static JWNL.OS UNDEFINED
           
static JWNL.OS UNIX
           
static JWNL.OS WINDOWS
           
 
Method Summary
static java.lang.String getDictionaryPath()
          Get the path to the dictionary files.
static JWNL.OS getOS()
          Get the current OS.
static JWNL.Version getVersion()
          Get the current WordNet version
static void initialize()
           
static void initialize(java.io.InputStream propertiesStream)
           
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

WINDOWS

public static final JWNL.OS WINDOWS

UNIX

public static final JWNL.OS UNIX

MAC

public static final JWNL.OS MAC

UNDEFINED

public static final JWNL.OS UNDEFINED
Method Detail

initialize

public static void initialize()
                       throws JWNLException

initialize

public static void initialize(java.io.InputStream propertiesStream)
                       throws JWNLException

getOS

public static JWNL.OS getOS()
Get the current OS.


getVersion

public static JWNL.Version getVersion()
Get the current WordNet version


getDictionaryPath

public static java.lang.String getDictionaryPath()
Get the path to the dictionary files. If JWNL is running in a non-file backed mode (i.e. over a network or via a database), this method returns null.


resolveMessage

public static java.lang.String resolveMessage(java.lang.String msg)
Resolve msg in one of the resource bundles used by the system


resolveMessage

public 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.

Parameters:
obj - parameter to insert into the resolved message

resolveMessage

public 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

Parameters:
params - parameters to insert into the resolved message

shutdown

public static void shutdown()



JWNL homepage.