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