SevenZipReader implements SeekableByteChannel { @Override public long position() throws IOException { return position; } SevenZipReader(final WindowReader reader); @Override int read(final ByteBuffer dst); @Override int write(ByteBuffer src); @Override long position(); @Override SeekableByteChannel position(long newPosition); @Override long size(); @Override SeekableByteChannel truncate(long size); @Override boolean isOpen(); @Override void close(); @Override String toString();  }
@Test public void testGetSetPosition() throws Exception { assertEquals(0, zip.position()); for (int pos = 0; pos < 234; pos++) { zip.position(pos); assertEquals(pos, zip.position()); } }