net.didion.jwnl.dictionary.file
Class DictionaryCatalogSet
java.lang.Object
net.didion.jwnl.dictionary.file.DictionaryCatalogSet
public class DictionaryCatalogSet
- extends java.lang.Object
Simple container for DictionaryCatalog
s that allows
a DictionaryFile
to be retrieved by its POS
and DictionaryFileType
.
Constructor Summary |
DictionaryCatalogSet(java.lang.String path,
java.lang.Class dictionaryFileType)
Creates a catalog set of the specified type of file using files in the specified dictionary directory. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DictionaryCatalogSet
public DictionaryCatalogSet(java.lang.String path,
java.lang.Class dictionaryFileType)
- Creates a catalog set of the specified type of file using files in the specified dictionary directory.
open
public void open()
throws java.io.IOException
- Throws:
java.io.IOException
isOpen
public boolean isOpen()
close
public void close()
get
public DictionaryCatalog get(DictionaryFileType fileType)
size
public int size()
getCatalogIterator
public java.util.Iterator getCatalogIterator()
getDictionaryFile
public DictionaryFile getDictionaryFile(POS pos,
DictionaryFileType fileType)