Class BlockStreamInput

All Implemented Interfaces:
Closeable, AutoCloseable

public class BlockStreamInput extends NamedWriteableAwareStreamInput
Stream for reading Blocks. You must close() this reader when you are done using it. While this wraps a StreamInput to do the actual reading of the bytes the close() method doesn't close the wrapped reader. Instead it decrements any reference counts on Blocks cached in the reader.