net.didion.jwnl.dictionary.file
Interface DictionaryFile

All Known Subinterfaces:
ObjectDictionaryFile, RandomAccessDictionaryFile
All Known Implementing Classes:
AbstractDictionaryFile, AbstractPrincetonRandomAccessDictionaryFile, PrincetonObjectDictionaryFile

public interface DictionaryFile

Represents a single dictionary file. Extensions or implementations of this interface should provide the appropriate methods to read from the file.


Field Summary
static java.lang.String COMMENT_HEADER
           
 
Method Summary
 void close()
          Close the file
 java.io.File getFile()
           
 DictionaryFileType getFileType()
          The file type associated with this file.
 POS getPOS()
          The POS associated with this file.
 boolean isOpen()
          Return true if the file is open
 DictionaryFile newInstance(java.lang.String path, POS pos, DictionaryFileType fileType)
          Create a new instance of the dictionary file
 void open()
          Open the file.
 

Field Detail

COMMENT_HEADER

public static final java.lang.String COMMENT_HEADER
See Also:
Constant Field Values
Method Detail

newInstance

public DictionaryFile newInstance(java.lang.String path,
                                  POS pos,
                                  DictionaryFileType fileType)
Create a new instance of the dictionary file


close

public void close()
Close the file


isOpen

public boolean isOpen()
Return true if the file is open


getPOS

public POS getPOS()
The POS associated with this file.


getFile

public java.io.File getFile()

getFileType

public DictionaryFileType getFileType()
The file type associated with this file.


open

public void open()
          throws java.io.IOException
Open the file.

Throws:
java.io.IOException



JWNL homepage.