public long bytesPastMark() { long bytes = current() - markedPointer; assert bytes >= 0; return bytes; }
public long bytesPastMark(DataPosition mark) { assert mark instanceof BufferedRandomAccessFileMark; long bytes = current() - ((BufferedRandomAccessFileMark) mark).pointer; assert bytes >= 0; return bytes; }
public long bytesPastMark() { long bytes = current() - markedPointer; assert bytes >= 0; return bytes; }
public long bytesPastMark(DataPosition mark) { assert mark instanceof BufferedRandomAccessFileMark; long bytes = current() - ((BufferedRandomAccessFileMark) mark).pointer; assert bytes >= 0; return bytes; }
public long bytesPastMark() { long bytes = current() - markedPointer; assert bytes >= 0; return bytes; }
public long bytesPastMark(DataPosition mark) { assert mark instanceof BufferedRandomAccessFileMark; long bytes = current() - ((BufferedRandomAccessFileMark) mark).pointer; assert bytes >= 0; return bytes; }
public long getPosition() { return current(); }
public long getPosition() { return current(); }
public long bytesPastMark() { long bytes = current() - markedPointer; assert bytes >= 0; return bytes; }
public long bytesPastMark(DataPosition mark) { assert mark instanceof BufferedRandomAccessFileMark; long bytes = current() - ((BufferedRandomAccessFileMark) mark).pointer; assert bytes >= 0; return bytes; }
@Override public long getFilePointer() { if (buffer == null) // closed already return rebufferer.fileLength(); return current(); }
/** * @return true if there is no more data to read */ public boolean isEOF() { return current() == length(); }
@Override public long getFilePointer() { if (buffer == null) // closed already return rebufferer.fileLength(); return current(); }
public DataPosition mark() { markedPointer = current(); return new BufferedRandomAccessFileMark(markedPointer); }
/** * @return true if there is no more data to read */ public boolean isEOF() { return current() == length(); }
@Override public long getFilePointer() { if (buffer == null) // closed already return rebufferer.fileLength(); return current(); }
public DataPosition mark() { markedPointer = current(); return new BufferedRandomAccessFileMark(markedPointer); }
/** * Read data from file starting from current currentOffset to populate buffer. */ public void reBuffer() { if (isEOF()) return; reBufferAt(current()); }
/** * Read data from file starting from current currentOffset to populate buffer. */ public void reBuffer() { if (isEOF()) return; reBufferAt(current()); }
/** * Read data from file starting from current currentOffset to populate buffer. */ public void reBuffer() { if (isEOF()) return; reBufferAt(current()); }