Modifier and Type | Interface and Description |
---|---|
interface |
BufferedSource
A source that keeps a buffer internally so that callers can do small reads
without a performance penalty.
|
Modifier and Type | Class and Description |
---|---|
class |
Buffer
A collection of bytes in memory.
|
class |
ForwardingSource
A
Source which forwards calls to another. |
class |
GzipSource
A source that uses GZIP to
decompress data read from another source.
|
class |
InflaterSource
A source that uses DEFLATE
to decompress data read from another source.
|
Modifier and Type | Method and Description |
---|---|
Source |
ForwardingSource.delegate()
Source to which this instance is delegating. |
static Source |
Okio.source(File file)
Returns a source that reads from
file . |
static Source |
Okio.source(InputStream in)
Returns a source that reads from
in . |
static Source |
Okio.source(Path path,
OpenOption... options)
Returns a source that reads from
path . |
static Source |
Okio.source(Socket socket)
Returns a source that reads from
socket . |
Source |
AsyncTimeout.source(Source source)
Returns a new source that delegates to
source , using this to
implement timeouts. |
Modifier and Type | Method and Description |
---|---|
static BufferedSource |
Okio.buffer(Source source)
Returns a new source that buffers reads from
source . |
Source |
AsyncTimeout.source(Source source)
Returns a new source that delegates to
source , using this to
implement timeouts. |
BufferedSink |
Buffer.write(Source source,
long byteCount) |
BufferedSink |
BufferedSink.write(Source source,
long byteCount)
Removes
byteCount bytes from source and appends them to this sink. |
long |
Buffer.writeAll(Source source) |
long |
BufferedSink.writeAll(Source source)
Removes all bytes from
source and appends them to this sink. |
Constructor and Description |
---|
ForwardingSource(Source delegate) |
GzipSource(Source source) |
InflaterSource(Source source,
Inflater inflater) |
Copyright © 2015. All rights reserved.