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);
}
Aggregations