Skip to content
Branch: master
Find file History
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
..
Failed to load latest commit information.
src
README.md

README.md

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:

ByteChannel

  • 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

SeekableByteChannel

  • ByteChannel that adds seek and size methods
  • Additionally constructible from java.nio.channels.SeekableByteChannels and hammerlab.path.Paths

CachingChannel

  • SeekableByteChannel that keeps an LRU cache of an underlying channel
  • Defaults: 64KB blocks, 64MB total size
You can’t perform that action at this time.