| Package | Description | 
|---|---|
| okio | 
| Modifier and Type | Class and Description | 
|---|---|
| class  | BufferA collection of bytes in memory. | 
| Modifier and Type | Method and Description | 
|---|---|
| static BufferedSink | Okio. buffer(Sink sink)Returns a new sink that buffers writes to  sink. | 
| BufferedSink | Buffer. emit() | 
| BufferedSink | BufferedSink. emit()Writes all buffered data to the underlying sink, if one exists. | 
| BufferedSink | BufferedSink. emitCompleteSegments()Writes complete segments to the underlying sink, if one exists. | 
| BufferedSink | BufferedSink. write(byte[] source)Like  OutputStream.write(byte[]), this writes a complete byte array to
 this sink. | 
| BufferedSink | BufferedSink. write(byte[] source,
     int offset,
     int byteCount)Like  OutputStream.write(byte[], int, int), this writesbyteCountbytes ofsource, starting atoffset. | 
| BufferedSink | BufferedSink. write(ByteString byteString) | 
| BufferedSink | Buffer. write(Source source,
     long byteCount) | 
| BufferedSink | BufferedSink. write(Source source,
     long byteCount)Removes  byteCountbytes fromsourceand appends them to this sink. | 
| BufferedSink | BufferedSink. writeByte(int b)Writes a byte to this sink. | 
| BufferedSink | BufferedSink. writeDecimalLong(long v)Writes a long to this sink in signed decimal form (i.e., as a string in base 10). | 
| BufferedSink | BufferedSink. writeHexadecimalUnsignedLong(long v)Writes a long to this sink in hexadecimal form (i.e., as a string in base 16). | 
| BufferedSink | BufferedSink. writeInt(int i)Writes a big-endian int to this sink using four bytes. | 
| BufferedSink | BufferedSink. writeIntLe(int i)Writes a little-endian int to this sink using four bytes. | 
| BufferedSink | BufferedSink. writeLong(long v)Writes a big-endian long to this sink using eight bytes. | 
| BufferedSink | BufferedSink. writeLongLe(long v)Writes a little-endian long to this sink using eight bytes. | 
| BufferedSink | BufferedSink. writeShort(int s)Writes a big-endian short to this sink using two bytes. | 
| BufferedSink | BufferedSink. writeShortLe(int s)Writes a little-endian short to this sink using two bytes. | 
| BufferedSink | BufferedSink. writeString(String string,
           Charset charset)Encodes  stringincharsetand writes it to this sink. | 
| BufferedSink | BufferedSink. writeString(String string,
           int beginIndex,
           int endIndex,
           Charset charset)Encodes the characters at  beginIndexup toendIndexfromstringincharsetand writes it to this sink. | 
| BufferedSink | BufferedSink. writeUtf8(String string)Encodes  stringin UTF-8 and writes it to this sink. | 
| BufferedSink | BufferedSink. writeUtf8(String string,
         int beginIndex,
         int endIndex)Encodes the characters at  beginIndexup toendIndexfromstringin
 UTF-8 and writes it to this sink. | 
| BufferedSink | BufferedSink. writeUtf8CodePoint(int codePoint)Encodes  codePointin UTF-8 and writes it to this sink. | 
Copyright © 2017. All rights reserved.