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
|
makeFilenamegetFile, getFileType, getPOS, open, openFileclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetFilePointer, length, read, readLine, seekclose, getFile, getFileType, getPOS, isOpen, newInstance, openpublic AbstractPrincetonRandomAccessDictionaryFile()
protected AbstractPrincetonRandomAccessDictionaryFile(String path, POS pos, DictionaryFileType fileType)
public void setNextLineOffset(long previousOffset,
long nextOffset)
RandomAccessDictionaryFilesetNextLineOffset in interface RandomAccessDictionaryFilepublic boolean isPreviousLineOffset(long offset)
RandomAccessDictionaryFileoffset is the previous offset.isPreviousLineOffset in interface RandomAccessDictionaryFilepublic long getNextLineOffset()
RandomAccessDictionaryFilegetNextLineOffset in interface RandomAccessDictionaryFileCopyright © 2019. All rights reserved.