Skip to content

Latest commit

 

History

History

channel

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 

channel

Build Status Coverage Status org.hammerlab:channel_* on Maven Central

Classes for unifying, type-safening, and performance-improvening java.io.InputStream and java.nio.channels.{Seekable,}ByteChannel abstractions:

  • Basic, un-seek-able implementation of InputStream and ReadableByteChannel interfaces
  • Supports position-querying, skip, and readFully APIs taking/returning bytes, byte-arrays, and ByteBuffers
  • Constructible from InputStreams and Iterator[Byte]s, by default
  • ByteChannel that adds seek and size methods
  • Additionally constructible from java.nio.channels.SeekableByteChannels and hammerlab.path.Paths
  • SeekableByteChannel that keeps an LRU cache of an underlying channel
  • Defaults: 64KB blocks, 64MB total size