Package net.didion.jwnl.dictionary.file
Class DictionaryCatalogSet
- java.lang.Object
-
- net.didion.jwnl.dictionary.file.DictionaryCatalogSet
-
public class DictionaryCatalogSet extends Object
Simple container forDictionaryCatalogs that allows aDictionaryFileto be retrieved by itsPOSandDictionaryFileType.
-
-
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 voidclose()DictionaryCatalogget(DictionaryFileType fileType)IteratorgetCatalogIterator()DictionaryFilegetDictionaryFile(POS pos, DictionaryFileType fileType)booleanisOpen()voidopen()intsize()
-
-
-
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)
-
-