|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.didion.jwnl.dictionary.file.AbstractDictionaryFile
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 Summary |
| Fields inherited from interface net.didion.jwnl.dictionary.file.DictionaryFile |
COMMENT_HEADER |
| Constructor Summary | |
|
AbstractDictionaryFile()
|
protected |
AbstractDictionaryFile(java.lang.String path,
POS pos,
DictionaryFileType fileType)
|
| Method Summary | |
java.io.File |
getFile()
|
DictionaryFileType |
getFileType()
The file type associated with this file. |
POS |
getPOS()
The POS associated with this file. |
protected abstract java.lang.String |
makeFilename()
Build a filename from the part-of-speech and the file type. |
void |
open()
Open the file. |
protected abstract void |
openFile(java.io.File file)
Open the file at path path |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface net.didion.jwnl.dictionary.file.DictionaryFile |
close, isOpen, newInstance |
| Constructor Detail |
public AbstractDictionaryFile()
protected AbstractDictionaryFile(java.lang.String path,
POS pos,
DictionaryFileType fileType)
| Method Detail |
protected abstract java.lang.String makeFilename()
protected abstract void openFile(java.io.File file)
throws java.io.IOException
path
java.io.IOExceptionpublic POS getPOS()
getPOS in interface DictionaryFilepublic java.io.File getFile()
getFile in interface DictionaryFilepublic DictionaryFileType getFileType()
getFileType in interface DictionaryFile
public void open()
throws java.io.IOException
open in interface DictionaryFilejava.io.IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||