Package net.didion.jwnl.dictionary.file
Class DictionaryCatalog
- java.lang.Object
-
- net.didion.jwnl.dictionary.file.DictionaryCatalog
-
public class DictionaryCatalog extends Object
A container for the files associated with a catalog (the index, data, and exception files associated with a POS).
-
-
Constructor Summary
Constructors Constructor Description DictionaryCatalog(String path, DictionaryFileType fileType, Class dictionaryFileType)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
DictionaryFile
get(POS pos)
Iterator
getFileIterator()
DictionaryFileType
getFileType()
Object
getKey()
boolean
isOpen()
void
open()
int
size()
-
-
-
Constructor Detail
-
DictionaryCatalog
public DictionaryCatalog(String path, DictionaryFileType fileType, Class dictionaryFileType)
-
-
Method Detail
-
getKey
public Object getKey()
-
open
public void open() throws IOException
- Throws:
IOException
-
isOpen
public boolean isOpen()
-
close
public void close()
-
size
public int size()
-
getFileIterator
public Iterator getFileIterator()
-
get
public DictionaryFile get(POS pos)
-
getFileType
public DictionaryFileType getFileType()
-
-