Class AbstractDictionaryFile

java.lang.Object
net.didion.jwnl.dictionary.file.AbstractDictionaryFile
All Implemented Interfaces:
DictionaryFile
Direct Known Subclasses:
AbstractPrincetonDictionaryFile

public abstract class AbstractDictionaryFile extends Object implements DictionaryFile
Abstract implementation of DictionaryFile. This class should be implemented for each file naming scheme used. It is assumed that each file will be associated with both a POS and a file type (e.g. in the windows naming scheme, the verb index file is called "verb.idx").
  • Field Details

    • _pos

      private POS _pos
    • _fileType

      private DictionaryFileType _fileType
      The type of the file. For example, the default implementation defines the types INDEX, DATA, and EXCEPTION.
    • _file

      private File _file
  • Constructor Details

    • AbstractDictionaryFile

      public AbstractDictionaryFile()
    • AbstractDictionaryFile

      protected AbstractDictionaryFile(String path, POS pos, DictionaryFileType fileType)
  • Method Details