Package net.didion.jwnl.dictionary.file
Interface DictionaryFile
- All Known Subinterfaces:
ObjectDictionaryFile
,RandomAccessDictionaryFile
- All Known Implementing Classes:
AbstractDictionaryFile
,AbstractPrincetonDictionaryFile
,AbstractPrincetonRandomAccessDictionaryFile
,PrincetonChannelDictionaryFile
,PrincetonObjectDictionaryFile
,PrincetonRandomAccessDictionaryFile
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
Fields -
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
Close the filegetFile()
The file type associated with this file.getPOS()
The POS associated with this file.boolean
isOpen()
Return true if the file is opennewInstance
(String path, POS pos, DictionaryFileType fileType) Create a new instance of the dictionary filevoid
open()
Open the file.
-
Field Details
-
COMMENT_HEADER
- See Also:
-
-
Method Details
-
newInstance
Create a new instance of the dictionary file -
close
void close()Close the file -
isOpen
boolean isOpen()Return true if the file is open -
getPOS
POS getPOS()The POS associated with this file. -
getFile
File getFile() -
getFileType
DictionaryFileType getFileType()The file type associated with this file. -
open
Open the file.- Throws:
IOException
-