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 BufferBuffer.copyTo(OutputStream out) Copy the contents of this toout.final BufferBuffer.copyTo(OutputStream out, long offset, long byteCount) CopybyteCountbytes from this, starting atoffset, toout.final BufferCopybyteCountbytes from this, starting atoffset, toout.Buffer.emitCompleteSegments()Buffer.getBuffer()BufferedSource.getBuffer()This source's internal buffer.final BufferBuffer.readFrom(InputStream in) Read and exhaust bytes frominto this.final BufferBuffer.readFrom(InputStream in, long byteCount) ReadbyteCountbytes frominto 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 BufferBuffer.writeTo(OutputStream out) Write the contents of this toout.final BufferBuffer.writeTo(OutputStream out, long byteCount) WritebyteCountbytes from this toout.Buffer.writeUtf8CodePoint(int codePoint) Modifier and TypeMethodDescriptionfinal BufferCopybyteCountbytes from this, starting atoffset, toout.longlonglonglonglonglongRemoves at least 1, and up tobyteCountbytes from this and appends them tosink.voidvoidRemoves exactlybyteCountbytes from this and appends them tosink.voidvoidvoidvoidvoidvoidRemovesbyteCountbytes fromsourceand appends them to this.