Uses of Class
okio.Buffer
-
Uses of Buffer in okio
Modifier and TypeMethodDescriptionBuffer.buffer()
BufferedSink.buffer()
Returns this sink's internal buffer.BufferedSource.buffer()
Deprecated.use getBuffer() instead.Buffer.clone()
Returns a deep copy of this buffer.final Buffer
Buffer.copyTo
(OutputStream out) Copy the contents of this toout
.final Buffer
Buffer.copyTo
(OutputStream out, long offset, long byteCount) CopybyteCount
bytes from this, starting atoffset
, toout
.final Buffer
CopybyteCount
bytes from this, starting atoffset
, toout
.Buffer.emitCompleteSegments()
Buffer.getBuffer()
BufferedSource.getBuffer()
This source's internal buffer.final Buffer
Buffer.readFrom
(InputStream in) Read and exhaust bytes fromin
to this.final Buffer
Buffer.readFrom
(InputStream in, long byteCount) ReadbyteCount
bytes fromin
to this.Buffer.write
(byte[] source) Buffer.write
(byte[] source, int offset, int byteCount) Buffer.write
(ByteString byteString) Buffer.writeByte
(int b) Buffer.writeDecimalLong
(long v) Buffer.writeHexadecimalUnsignedLong
(long v) Buffer.writeInt
(int i) Buffer.writeIntLe
(int i) Buffer.writeLong
(long v) Buffer.writeLongLe
(long v) Buffer.writeShort
(int s) Buffer.writeShortLe
(int s) Buffer.writeString
(String string, int beginIndex, int endIndex, Charset charset) Buffer.writeString
(String string, Charset charset) final Buffer
Buffer.writeTo
(OutputStream out) Write the contents of this toout
.final Buffer
Buffer.writeTo
(OutputStream out, long byteCount) WritebyteCount
bytes from this toout
.Buffer.writeUtf8CodePoint
(int codePoint) Modifier and TypeMethodDescriptionfinal Buffer
CopybyteCount
bytes from this, starting atoffset
, toout
.long
long
long
long
long
long
Removes at least 1, and up tobyteCount
bytes from this and appends them tosink
.void
void
Removes exactlybyteCount
bytes from this and appends them tosink
.void
void
void
void
void
void
RemovesbyteCount
bytes fromsource
and appends them to this.