net.didion.jwnl.dictionary.file
Class DictionaryCatalogSet

java.lang.Object
  extended by net.didion.jwnl.dictionary.file.DictionaryCatalogSet

public class DictionaryCatalogSet
extends java.lang.Object

Simple container for DictionaryCatalogs that allows a DictionaryFile to be retrieved by its POS and DictionaryFileType.


Constructor Summary
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
 void close()
           
 DictionaryCatalog get(DictionaryFileType fileType)
           
 java.util.Iterator getCatalogIterator()
           
 DictionaryFile getDictionaryFile(POS pos, DictionaryFileType fileType)
           
 boolean isOpen()
           
 void open()
           
 int size()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DictionaryCatalogSet

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