Search in sources :

Example 1 with CountingInputStream

use of org.spf4j.io.CountingInputStream in project spf4j by zolyfarkas.

the class TSDBReader method resetStream.

private void resetStream(final long position) throws IOException {
    byteChannel.position(position);
    bis = new CountingInputStream(new MemorizingBufferedInputStream(Channels.newInputStream(byteChannel), bufferSize), position);
    decoder = DecoderFactory.get().directBinaryDecoder(bis, decoder);
}
Also used : MemorizingBufferedInputStream(org.spf4j.io.MemorizingBufferedInputStream) CountingInputStream(org.spf4j.io.CountingInputStream)

Aggregations

CountingInputStream (org.spf4j.io.CountingInputStream)1 MemorizingBufferedInputStream (org.spf4j.io.MemorizingBufferedInputStream)1