TrueZipReader extends AbstractReadOnlyFile { @Override public int read() throws IOException { ensureOpen(); final int result = reader.readByte(filePointer); if (result >= 0) { filePointer++; } return result; } TrueZipReader(final WindowReader reader);  TrueZipReader(final WindowReader reader, final boolean closeReaderIfClosed); @Override long length(); @Override long getFilePointer(); @Override int read(); @Override void seek(long position); @Override int read(byte[] bytes, int offset, int length); @Override void close();  }
@Test public void testReadBytes() throws Exception { for (long pos = 0; pos < 1024; pos++) { assertEquals(reader.readByte(pos), zip.read()); } }