Class AbstractPrincetonDictionaryFile
java.lang.Object
net.didion.jwnl.dictionary.file.AbstractDictionaryFile
net.didion.jwnl.princeton.file.AbstractPrincetonDictionaryFile
- All Implemented Interfaces:
DictionaryFile
- Direct Known Subclasses:
AbstractPrincetonRandomAccessDictionaryFile, PrincetonObjectDictionaryFile
AbstractDictionaryFile that uses file names compatible with Princeton's distribution of WordNet.
The filenames associated are:
WINDOWS: invalid input: '<'noun, verb, adj, adv>.invalid input: '<'idx, dat, exc>
MAC, UNIX: invalid input: '<'index, data>.invalid input: '<'noun, verb, adj, adv>, invalid input: '<'noun, verb, adj, adv>.exc-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate static final class -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final Mapprivate static final Mapprivate static final Stringprivate static final Stringprivate static final Stringprivate static final StringFields inherited from interface DictionaryFile
COMMENT_HEADER -
Constructor Summary
ConstructorsConstructorDescriptionAbstractPrincetonDictionaryFile(String path, POS pos, DictionaryFileType fileType) -
Method Summary
Modifier and TypeMethodDescriptionprivate StringgetExtension(POS pos) protected StringBuild a filename from the part-of-speech and the file type.private StringmakeNonWindowsFilename(String posStr, String fileTypeStr) private StringmakeWindowsFilename(String posStr, String fileTypeStr) Makes a windows file type string.Methods inherited from class AbstractDictionaryFile
getFile, getFileType, getPOS, open, openFileMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface DictionaryFile
close, isOpen, newInstance
-
Field Details
-
NOUN_EXT
- See Also:
-
VERB_EXT
- See Also:
-
ADJECTIVE_EXT
- See Also:
-
ADVERB_EXT
- See Also:
-
_posToExtMap
-
_fileTypeToFileNameMap
-
-
Constructor Details
-
AbstractPrincetonDictionaryFile
public AbstractPrincetonDictionaryFile() -
AbstractPrincetonDictionaryFile
-
-
Method Details
-
makeFilename
Description copied from class:AbstractDictionaryFileBuild a filename from the part-of-speech and the file type.- Specified by:
makeFilenamein classAbstractDictionaryFile
-
makeWindowsFilename
-
makeNonWindowsFilename
-
getExtension
-
getFileNames
-