Abstract Buf
class for Java compatibility.
Buf represents a fixed, immutable byte buffer.
A Buf that concat multiple Bufs together
Provides the Reader API for an InputStream
A Reader represents a stream of bytes, read in discrete chunks.
A Reader represents a stream of bytes, read in discrete chunks. Readers permit at most one outstanding read.
A Writer represents a sink for a stream of bytes, providing a convenient interface for the producer of such streams.
Buf wrapper-types (like Buf.ByteArray and Buf.ByteBuffer) provide Shared and Owned APIs, each of which with construction & extraction utilities.
Buf wrapper-types (like Buf.ByteArray and Buf.ByteBuffer) provide Shared and Owned APIs, each of which with construction & extraction utilities.
The Owned APIs may provide direct access to a Buf's underlying implementation; and so mutating the data structure invalidates a Buf's immutability constraint. Users must take care to handle this data immutably.
The Shared variants, on the other hand, ensure that the Buf shares no state with the caller (at the cost of additional allocation).
Note: There is a Java-friendly API for this object: com.twitter.io.Buf.
Provides a set of frequently used java.nio.charset.Charset instances and the utilities related to them.
Utilities for working with java.io.File
s
Writers for Java friendly APIs.
Buf represents a fixed, immutable byte buffer. Buffers may be sliced and concatenated, and thus be used to implement bytestreams.
Note: There is a Java-friendly API for this trait: com.twitter.io.AbstractBuf.