| Modifier and Type | Interface and Description |
|---|---|
interface |
BufferedSink
A sink that keeps a buffer internally so that callers can do small writes
without a performance penalty.
|
| Modifier and Type | Class and Description |
|---|---|
class |
Buffer
A collection of bytes in memory.
|
class |
DeflaterSink
A sink that uses DEFLATE to
compress data written to another source.
|
class |
ForwardingSink
A
Sink which forwards calls to another. |
class |
GzipSink
A sink that uses GZIP to
compress written data to another sink.
|
| Modifier and Type | Method and Description |
|---|---|
static Sink |
Okio.appendingSink(File file)
Returns a sink that appends to
file. |
Sink |
ForwardingSink.delegate()
Sink to which this instance is delegating. |
static Sink |
Okio.sink(File file)
Returns a sink that writes to
file. |
static Sink |
Okio.sink(OutputStream out)
Returns a sink that writes to
out. |
static Sink |
Okio.sink(java.nio.file.Path path,
java.nio.file.OpenOption... options)
Returns a sink that writes to
path. |
Sink |
AsyncTimeout.sink(Sink sink)
Returns a new sink that delegates to
sink, using this to implement
timeouts. |
static Sink |
Okio.sink(Socket socket)
Returns a sink that writes to
socket. |
| Modifier and Type | Method and Description |
|---|---|
static BufferedSink |
Okio.buffer(Sink sink)
Returns a new sink that buffers writes to
sink. |
long |
BufferedSource.readAll(Sink sink)
Removes all bytes from this and appends them to
sink. |
long |
Buffer.readAll(Sink sink) |
Sink |
AsyncTimeout.sink(Sink sink)
Returns a new sink that delegates to
sink, using this to implement
timeouts. |
| Constructor and Description |
|---|
DeflaterSink(Sink sink,
Deflater deflater) |
ForwardingSink(Sink delegate) |
GzipSink(Sink sink) |
Copyright © 2015. All Rights Reserved.