Package 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 forDictionaryCatalog
s that allows aDictionaryFile
to be retrieved by itsPOS
andDictionaryFileType
.
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.Map
_catalogs
-
Constructor Summary
Constructors Constructor Description 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.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
DictionaryCatalog
get(DictionaryFileType fileType)
java.util.Iterator
getCatalogIterator()
DictionaryFile
getDictionaryFile(POS pos, DictionaryFileType fileType)
boolean
isOpen()
void
open()
int
size()
-
-
-
Method Detail
-
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)
-
-