@ParametersAreNonnullByDefault
Package okio
Okio complements
java.io
and java.nio
to make it much easier to access, store,
and process your data.-
Interface Summary Interface Description BufferedSink A sink that keeps a buffer internally so that callers can do small writes without a performance penalty.BufferedSource A source that keeps a buffer internally so that callers can do small reads without a performance penalty.Sink Receives a stream of bytes.Source Supplies a stream of bytes. -
Class Summary Class Description AsyncTimeout This timeout uses a background thread to take action exactly when the timeout occurs.Buffer A collection of bytes in memory.Buffer.UnsafeCursor A handle to the underlying data in a buffer.ByteString An immutable sequence of bytes.DeflaterSink A sink that uses DEFLATE to compress data written to another source.ForwardingSink ASink
which forwards calls to another.ForwardingSource ASource
which forwards calls to another.ForwardingTimeout ATimeout
which forwards calls to another.GzipSink A sink that uses GZIP to compress written data to another sink.GzipSource A source that uses GZIP to decompress data read from another source.HashingSink A sink that computes a hash of the full stream of bytes it has accepted.HashingSource A source that computes a hash of the full stream of bytes it has supplied.InflaterSource A source that uses DEFLATE to decompress data read from another source.Okio Essential APIs for working with Okio.Options An indexed set of values that may be read withBufferedSource.select(okio.Options)
.Pipe A source and a sink that are attached.Timeout A policy on how much time to spend on a task before giving up.Utf8 Okio assumes most applications use UTF-8 exclusively, and offers optimized implementations of common operations on UTF-8 strings.