Modifier and Type | Field and Description |
---|---|
Buffer |
Buffer.UnsafeCursor.buffer |
Modifier and Type | Method and Description |
---|---|
Buffer |
BufferedSink.buffer()
Returns this sink's internal buffer.
|
Buffer |
BufferedSource.buffer()
Returns this source's internal buffer.
|
Buffer |
Buffer.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 |
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 |
---|---|
Buffer |
Buffer.copyTo(Buffer out,
long offset,
long byteCount)
Copy
byteCount bytes from this, starting at offset , to out . |
long |
ForwardingSource.read(Buffer sink,
long byteCount) |
long |
GzipSource.read(Buffer sink,
long byteCount) |
long |
InflaterSource.read(Buffer sink,
long byteCount) |
long |
HashingSource.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) |
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 |
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 |
GzipSink.write(Buffer source,
long byteCount) |
void |
HashingSink.write(Buffer source,
long byteCount) |
void |
Buffer.write(Buffer source,
long byteCount) |
Copyright © 2018. All Rights Reserved.