Classes for unifying, type-safening, and performance-improvening java.io.InputStream
and java.nio.channels.{Seekable,}ByteChannel
abstractions:
- Basic, un-
seek
-able implementation ofInputStream
andReadableByteChannel
interfaces - Supports
position
-querying,skip
, andreadFully
APIs taking/returning bytes, byte-arrays, andByteBuffer
s - Constructible from
InputStream
s andIterator[Byte]
s, by default
ByteChannel
that addsseek
andsize
methods- Additionally constructible from
java.nio.channels.SeekableByteChannel
s andhammerlab.path.Path
s
SeekableByteChannel
that keeps an LRU cache of an underlying channel- Defaults: 64KB blocks, 64MB total size