protected static InputStream countingStream ( InputStream in , int lookback ) throws IOException { CountingInputStream cin = new CountingInputStream ( in ) ; cin . mark ( lookback ) ; return cin ; }
A CountingInputStream is inserted to read compressed - offsets .