|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object edu.mit.jwi.CachingDictionary edu.mit.jwi.Dictionary
public class Dictionary
Basic IDictionary
implementation that mounts files on disk and has
caching. A file URL to the directory containing the Wordnet dictionary files
must be provided. This implementation has adjustable caching.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class edu.mit.jwi.CachingDictionary |
---|
CachingDictionary.ItemCache |
Nested classes/interfaces inherited from interface edu.mit.jwi.ICachingDictionary |
---|
ICachingDictionary.IItemCache |
Nested classes/interfaces inherited from interface edu.mit.jwi.data.IHasLifecycle |
---|
IHasLifecycle.LifecycleState, IHasLifecycle.ObjectClosedException, IHasLifecycle.ObjectOpenException |
Constructor Summary | |
---|---|
Dictionary(java.io.File wordnetDir)
Constructs a new dictionary that uses the Wordnet files located in a directory pointed to by the specified file |
|
Dictionary(java.net.URL wordnetDir)
Constructs a new dictionary that uses the Wordnet files located in a directory pointed to by the specified url |
Method Summary |
---|
Methods inherited from class edu.mit.jwi.CachingDictionary |
---|
cacheSynset, checkOpen, close, createCache, getBackingDictionary, getCache, getCharset, getExceptionEntry, getExceptionEntry, getExceptionEntryIterator, getIndexWord, getIndexWord, getIndexWordIterator, getSenseEntry, getSenseEntryIterator, getSynset, getSynsetIterator, getVersion, getWord, getWord, isOpen, open, setCharset |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Dictionary(java.net.URL wordnetDir)
wordnetDir
- a url pointing to a directory containing the wordnet data
files on the filesystem
java.lang.NullPointerException
- if the specified url is null
public Dictionary(java.io.File wordnetDir)
wordnetDir
- a file pointing to a directory containing the wordnet data files on the filesystem
java.lang.NullPointerException
- if the specified file is null
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |