Package net.didion.jwnl.dictionary.file
Class DictionaryCatalogSet
- java.lang.Object
-
- net.didion.jwnl.dictionary.file.DictionaryCatalogSet
-
public class DictionaryCatalogSet extends Object
Simple container forDictionaryCatalog
s that allows aDictionaryFile
to be retrieved by itsPOS
andDictionaryFileType
.
-
-
Constructor Summary
Constructors Constructor Description DictionaryCatalogSet(String path, Class dictionaryFileType)
Creates a catalog set of the specified type of file using files in the specified dictionary directory.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
DictionaryCatalog
get(DictionaryFileType fileType)
Iterator
getCatalogIterator()
DictionaryFile
getDictionaryFile(POS pos, DictionaryFileType fileType)
boolean
isOpen()
void
open()
int
size()
-
-
-
Method Detail
-
open
public void open() throws IOException
- Throws:
IOException
-
isOpen
public boolean isOpen()
-
close
public void close()
-
get
public DictionaryCatalog get(DictionaryFileType fileType)
-
size
public int size()
-
getCatalogIterator
public Iterator getCatalogIterator()
-
getDictionaryFile
public DictionaryFile getDictionaryFile(POS pos, DictionaryFileType fileType)
-
-