@Override
	public synchronized void reset() throws IOException {
		if (mark == -1) {
			throw new IOException("No mark");
		}
		offset = mark;
	}
An input stream backed by a database chained buffer
Ghidra/Debug/ProposedUtils/src/main/java/ghidra/util/database/DBBufferInputStream.java