Package | Description |
---|---|
okio |
Okio complements
java.io and java.nio to make it much easier to access, store,
and process your data. |
okio.samples |
Modifier and Type | Field and Description |
---|---|
(package private) Buffer |
Pipe.buffer |
private Buffer |
PeekSource.buffer |
Buffer |
RealBufferedSink.buffer |
Buffer |
Buffer.UnsafeCursor.buffer |
Buffer |
RealBufferedSource.buffer |
Modifier and Type | Method and Description |
---|---|
Buffer |
BufferedSource.buffer()
Deprecated.
use getBuffer() instead.
|
Buffer |
RealBufferedSink.buffer() |
Buffer |
Buffer.buffer() |
Buffer |
BufferedSink.buffer()
Returns this sink's internal buffer.
|
Buffer |
RealBufferedSource.buffer() |
Buffer |
Buffer.clone()
Returns a deep copy of this buffer.
|
Buffer |
Buffer.copyTo(Buffer out,
long offset,
long byteCount)
Copy
byteCount bytes from this, starting at offset , to out . |
Buffer |
Buffer.copyTo(java.io.OutputStream out)
Copy the contents of this to
out . |
Buffer |
Buffer.copyTo(java.io.OutputStream out,
long offset,
long byteCount)
Copy
byteCount bytes from this, starting at offset , to
out . |
Buffer |
Buffer.emitCompleteSegments() |
Buffer |
BufferedSource.getBuffer()
This source's internal buffer.
|
Buffer |
Buffer.getBuffer() |
Buffer |
RealBufferedSource.getBuffer() |
Buffer |
Buffer.readFrom(java.io.InputStream in)
Read and exhaust bytes from
in to this. |
Buffer |
Buffer.readFrom(java.io.InputStream in,
long byteCount)
Read
byteCount bytes from in to this. |
Buffer |
Buffer.write(byte[] source) |
Buffer |
Buffer.write(byte[] source,
int offset,
int byteCount) |
Buffer |
Buffer.write(ByteString byteString) |
Buffer |
Buffer.writeByte(int b) |
Buffer |
Buffer.writeDecimalLong(long v) |
Buffer |
Buffer.writeHexadecimalUnsignedLong(long v) |
Buffer |
Buffer.writeInt(int i) |
Buffer |
Buffer.writeIntLe(int i) |
Buffer |
Buffer.writeLong(long v) |
Buffer |
Buffer.writeLongLe(long v) |
Buffer |
Buffer.writeShort(int s) |
Buffer |
Buffer.writeShortLe(int s) |
Buffer |
Buffer.writeString(java.lang.String string,
java.nio.charset.Charset charset) |
Buffer |
Buffer.writeString(java.lang.String string,
int beginIndex,
int endIndex,
java.nio.charset.Charset charset) |
Buffer |
Buffer.writeTo(java.io.OutputStream out)
Write the contents of this to
out . |
Buffer |
Buffer.writeTo(java.io.OutputStream out,
long byteCount)
Write
byteCount bytes from this to out . |
Buffer |
Buffer.writeUtf8(java.lang.String string) |
Buffer |
Buffer.writeUtf8(java.lang.String string,
int beginIndex,
int endIndex) |
Buffer |
Buffer.writeUtf8CodePoint(int codePoint) |
Modifier and Type | Method and Description |
---|---|
private static void |
Options.buildTrieRecursive(long nodeOffset,
Buffer node,
int byteStringOffset,
java.util.List<ByteString> byteStrings,
int fromIndex,
int toIndex,
java.util.List<java.lang.Integer> indexes)
Builds a trie encoded as an int array.
|
Buffer |
Buffer.copyTo(Buffer out,
long offset,
long byteCount)
Copy
byteCount bytes from this, starting at offset , to out . |
private static int |
Options.intCount(Buffer trieBytes) |
long |
ForwardingSource.read(Buffer sink,
long byteCount) |
long |
Pipe.PipeSource.read(Buffer sink,
long byteCount) |
long |
HashingSource.read(Buffer sink,
long byteCount) |
long |
PeekSource.read(Buffer sink,
long byteCount) |
long |
GzipSource.read(Buffer sink,
long byteCount) |
long |
Source.read(Buffer sink,
long byteCount)
Removes at least 1, and up to
byteCount bytes from this and appends
them to sink . |
long |
Buffer.read(Buffer sink,
long byteCount) |
long |
InflaterSource.read(Buffer sink,
long byteCount) |
long |
RealBufferedSource.read(Buffer sink,
long byteCount) |
void |
BufferedSource.readFully(Buffer sink,
long byteCount)
Removes exactly
byteCount bytes from this and appends them to sink . |
void |
Buffer.readFully(Buffer sink,
long byteCount) |
void |
RealBufferedSource.readFully(Buffer sink,
long byteCount) |
private void |
GzipSink.updateCrc(Buffer buffer,
long byteCount)
Updates the CRC with the given bytes.
|
private void |
GzipSource.updateCrc(Buffer buffer,
long offset,
long byteCount)
Updates the CRC with the given bytes.
|
(package private) void |
SegmentedByteString.write(Buffer buffer) |
(package private) void |
ByteString.write(Buffer buffer)
Writes the contents of this byte string to
buffer . |
void |
Pipe.PipeSink.write(Buffer source,
long byteCount) |
void |
ForwardingSink.write(Buffer source,
long byteCount) |
void |
DeflaterSink.write(Buffer source,
long byteCount) |
void |
Sink.write(Buffer source,
long byteCount)
Removes
byteCount bytes from source and appends them to this. |
void |
HashingSink.write(Buffer source,
long byteCount) |
void |
RealBufferedSink.write(Buffer source,
long byteCount) |
void |
Buffer.write(Buffer source,
long byteCount) |
void |
GzipSink.write(Buffer source,
long byteCount) |
Constructor and Description |
---|
SegmentedByteString(Buffer buffer,
int byteCount) |
Modifier and Type | Method and Description |
---|---|
long |
Randoms.RandomSource.read(Buffer sink,
long byteCount) |