public abstract class AbstractPrincetonRandomAccessDictionaryFile extends AbstractPrincetonDictionaryFile implements RandomAccessDictionaryFile
COMMENT_HEADER
Modifier | Constructor and Description |
---|---|
|
AbstractPrincetonRandomAccessDictionaryFile() |
protected |
AbstractPrincetonRandomAccessDictionaryFile(String path,
POS pos,
DictionaryFileType fileType) |
Modifier and Type | Method and Description |
---|---|
long |
getNextLineOffset()
Get the byte offset of the next line (after the position of the file pointer)
|
boolean |
isPreviousLineOffset(long offset)
Return true if
offset is the previous offset. |
void |
setNextLineOffset(long previousOffset,
long nextOffset)
Move the file pointer so that its next line offset is nextOffset
|
makeFilename
getFile, getFileType, getPOS, open, openFile
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getFilePointer, length, read, readLine, seek
close, getFile, getFileType, getPOS, isOpen, newInstance, open
public AbstractPrincetonRandomAccessDictionaryFile()
protected AbstractPrincetonRandomAccessDictionaryFile(String path, POS pos, DictionaryFileType fileType)
public void setNextLineOffset(long previousOffset, long nextOffset)
RandomAccessDictionaryFile
setNextLineOffset
in interface RandomAccessDictionaryFile
public boolean isPreviousLineOffset(long offset)
RandomAccessDictionaryFile
offset
is the previous offset.isPreviousLineOffset
in interface RandomAccessDictionaryFile
public long getNextLineOffset()
RandomAccessDictionaryFile
getNextLineOffset
in interface RandomAccessDictionaryFile
Copyright © 2022. All rights reserved.