public abstract class AbstractPrincetonRandomAccessDictionaryFile extends AbstractPrincetonDictionaryFile implements RandomAccessDictionaryFile
Modifier and Type | Field and Description |
---|---|
protected java.lang.String |
encoding |
static java.lang.String |
ENCODING_KEY
Dictionary file encoding.
|
dictionary, fileType, params, path, pos
Modifier | Constructor and Description |
---|---|
protected |
AbstractPrincetonRandomAccessDictionaryFile(Dictionary dictionary,
java.util.Map<java.lang.String,Param> params)
Factory constructor.
|
protected |
AbstractPrincetonRandomAccessDictionaryFile(Dictionary dictionary,
java.lang.String path,
POS pos,
DictionaryFileType fileType,
java.util.Map<java.lang.String,Param> params)
Instance constructor.
|
getFilename
getDictionary, getFileType, getPOS, setDictionary
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getFirstLineOffset, getNextLineOffset, getOffsetLength, length, readLine, readWord, setOffsetLength
close, edit, getFilename, getFileType, getPOS, isOpen, open, save
getDictionary, setDictionary
public static final java.lang.String ENCODING_KEY
Charset
.protected final java.lang.String encoding
protected AbstractPrincetonRandomAccessDictionaryFile(Dictionary dictionary, java.util.Map<java.lang.String,Param> params)
dictionary
- dictionaryparams
- paramsprotected AbstractPrincetonRandomAccessDictionaryFile(Dictionary dictionary, java.lang.String path, POS pos, DictionaryFileType fileType, java.util.Map<java.lang.String,Param> params)
dictionary
- dictionarypath
- file pathpos
- part of speechfileType
- file typeparams
- params