net.didion.jwnl.dictionary.file
Class DictionaryCatalog

java.lang.Object
  extended by 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).


Constructor Summary
DictionaryCatalog(java.lang.String path, DictionaryFileType fileType, java.lang.Class dictionaryFileType)
           
 
Method Summary
 void close()
           
 DictionaryFile get(POS pos)
           
 java.util.Iterator getFileIterator()
           
 DictionaryFileType getFileType()
           
 java.lang.Object getKey()
           
 boolean isOpen()
           
 void open()
           
 int size()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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()