Skip navigation links
A B C D E F G H I L M N O P R S T U W 

A

appendingSink(File) - Static method in class okio.Okio
Returns a sink that appends to file.
arrayRangeEquals(byte[], int, byte[], int, int) - Static method in class okio.Util
 
asByteBuffer() - Method in class okio.ByteString
Returns a ByteBuffer view of the bytes in this ByteString.
asByteBuffer() - Method in class okio.SegmentedByteString
 
AsyncTimeout - Class in okio
This timeout uses a background thread to take action exactly when the timeout occurs.
AsyncTimeout() - Constructor for class okio.AsyncTimeout
 
AsyncTimeout.Watchdog - Class in okio
 
awaitTimeout() - Static method in class okio.AsyncTimeout
Removes and returns the node at the head of the list, waiting for it to time out if necessary.

B

Base64 - Class in okio
 
Base64() - Constructor for class okio.Base64
 
base64() - Method in class okio.ByteString
Returns this byte string encoded as Base64.
base64() - Method in class okio.SegmentedByteString
 
base64Url() - Method in class okio.ByteString
Returns this byte string encoded as URL-safe Base64.
base64Url() - Method in class okio.SegmentedByteString
 
blackhole() - Static method in class okio.Okio
Returns a sink that writes nowhere.
Buffer - Class in okio
A collection of bytes in memory.
Buffer() - Constructor for class okio.Buffer
 
buffer() - Method in class okio.Buffer
 
buffer - Variable in class okio.Buffer.UnsafeCursor
 
buffer() - Method in interface okio.BufferedSink
Returns this sink's internal buffer.
buffer() - Method in interface okio.BufferedSource
Returns this source's internal buffer.
buffer(Source) - Static method in class okio.Okio
Returns a new source that buffers reads from source.
buffer(Sink) - Static method in class okio.Okio
Returns a new sink that buffers writes to sink.
buffer - Variable in class okio.Pipe
 
buffer - Variable in class okio.RealBufferedSink
 
buffer() - Method in class okio.RealBufferedSink
 
buffer - Variable in class okio.RealBufferedSource
 
buffer() - Method in class okio.RealBufferedSource
 
Buffer.UnsafeCursor - Class in okio
A handle to the underlying data in a buffer.
bufferBytesHeldByInflater - Variable in class okio.InflaterSource
When we call Inflater.setInput(), the inflater keeps our byte array until it needs input again.
BufferedSink - Interface in okio
A sink that keeps a buffer internally so that callers can do small writes without a performance penalty.
BufferedSource - Interface in okio
A source that keeps a buffer internally so that callers can do small reads without a performance penalty.
byteCount - Static variable in class okio.SegmentPool
Total bytes in this pool.
bytesLeft - Variable in class okio.samples.Randoms.RandomSource
 
ByteString - Class in okio
An immutable sequence of bytes.
ByteString(byte[]) - Constructor for class okio.ByteString
 
byteStrings - Variable in class okio.Options
 

C

cancelScheduledTimeout(AsyncTimeout) - Static method in class okio.AsyncTimeout
Returns true if the timeout occurred.
checkEqual(String, int, int) - Method in class okio.GzipSource
 
checkOffsetAndCount(long, long, long) - Static method in class okio.Util
 
clear() - Method in class okio.Buffer
Discards all bytes in this buffer.
clearDeadline() - Method in class okio.ForwardingTimeout
 
clearDeadline() - Method in class okio.Timeout
Clears the deadline.
clearTimeout() - Method in class okio.ForwardingTimeout
 
clearTimeout() - Method in class okio.Timeout
Clears the timeout.
clone() - Method in class okio.Buffer
Returns a deep copy of this buffer.
close() - Method in class okio.Buffer
 
close() - Method in class okio.Buffer.UnsafeCursor
 
close() - Method in class okio.DeflaterSink
 
close() - Method in class okio.ForwardingSink
 
close() - Method in class okio.ForwardingSource
 
close() - Method in class okio.GzipSink
 
close() - Method in class okio.GzipSource
 
close() - Method in class okio.InflaterSource
 
close() - Method in class okio.Pipe.PipeSink
 
close() - Method in class okio.Pipe.PipeSource
 
close() - Method in class okio.RealBufferedSink
 
close() - Method in class okio.RealBufferedSource
 
close() - Method in class okio.samples.Randoms.RandomSource
 
close() - Method in interface okio.Sink
Pushes all buffered bytes to their final destination and releases the resources held by this sink.
close() - Method in interface okio.Source
Closes this source and releases the resources held by this source.
closed - Variable in class okio.DeflaterSink
 
closed - Variable in class okio.GzipSink
 
closed - Variable in class okio.InflaterSource
 
closed - Variable in class okio.RealBufferedSink
 
closed - Variable in class okio.RealBufferedSource
 
codePointIndexToCharIndex(String, int) - Static method in class okio.ByteString
 
compact() - Method in class okio.Segment
Call this when the tail and its predecessor may both be less than half full.
compareTo(ByteString) - Method in class okio.ByteString
 
completeSegmentByteCount() - Method in class okio.Buffer
Returns the number of bytes in segments that are not writable.
consumeHeader() - Method in class okio.GzipSource
 
consumeTrailer() - Method in class okio.GzipSource
 
copyTo(OutputStream) - Method in class okio.Buffer
Copy the contents of this to out.
copyTo(OutputStream, long, long) - Method in class okio.Buffer
Copy byteCount bytes from this, starting at offset, to out.
copyTo(Buffer, long, long) - Method in class okio.Buffer
Copy byteCount bytes from this, starting at offset, to out.
crc - Variable in class okio.GzipSink
Checksum calculated for the compressed body.
crc - Variable in class okio.GzipSource
Checksum used to check both the GZIP header and decompressed body.

D

data - Variable in class okio.Buffer.UnsafeCursor
 
data - Variable in class okio.ByteString
 
data - Variable in class okio.Segment
 
deadline(long, TimeUnit) - Method in class okio.Timeout
Set a deadline of now plus duration time.
deadlineNanoTime() - Method in class okio.ForwardingTimeout
 
deadlineNanoTime(long) - Method in class okio.ForwardingTimeout
 
deadlineNanoTime - Variable in class okio.Timeout
 
deadlineNanoTime() - Method in class okio.Timeout
Returns the nano time when the deadline will be reached.
deadlineNanoTime(long) - Method in class okio.Timeout
Sets the nano time when the deadline will be reached.
decode(String) - Static method in class okio.Base64
 
decodeBase64(String) - Static method in class okio.ByteString
Decodes the Base64-encoded bytes and returns their value as a byte string.
decodeHex(String) - Static method in class okio.ByteString
Decodes the hex-encoded bytes and returns their value a byte string.
decodeHexDigit(char) - Static method in class okio.ByteString
 
deflate(boolean) - Method in class okio.DeflaterSink
 
deflater - Variable in class okio.DeflaterSink
 
deflater - Variable in class okio.GzipSink
The deflater used to compress the body.
deflater() - Method in class okio.GzipSink
Returns the Deflater.
DeflaterSink - Class in okio
A sink that uses DEFLATE to compress data written to another source.
DeflaterSink(Sink, Deflater) - Constructor for class okio.DeflaterSink
 
DeflaterSink(BufferedSink, Deflater) - Constructor for class okio.DeflaterSink
This package-private constructor shares a buffer with its trusted caller.
deflaterSink - Variable in class okio.GzipSink
The deflater sink takes care of moving data between decompressed source and compressed sink buffers.
delegate - Variable in class okio.ForwardingSink
 
delegate() - Method in class okio.ForwardingSink
Sink to which this instance is delegating.
delegate - Variable in class okio.ForwardingSource
 
delegate() - Method in class okio.ForwardingSource
Source to which this instance is delegating.
delegate - Variable in class okio.ForwardingTimeout
 
delegate() - Method in class okio.ForwardingTimeout
Timeout instance to which this instance is currently delegating.
digest(String) - Method in class okio.Buffer
 
digest(String) - Method in class okio.ByteString
 
DIGITS - Static variable in class okio.Buffer
 
directory - Variable in class okio.SegmentedByteString
 

E

emit() - Method in class okio.Buffer
 
emit() - Method in interface okio.BufferedSink
Writes all buffered data to the underlying sink, if one exists.
emit() - Method in class okio.RealBufferedSink
 
emitCompleteSegments() - Method in class okio.Buffer
 
emitCompleteSegments() - Method in interface okio.BufferedSink
Writes complete segments to the underlying sink, if one exists.
emitCompleteSegments() - Method in class okio.RealBufferedSink
 
EMPTY - Static variable in class okio.ByteString
A singleton empty ByteString.
encode(byte[]) - Static method in class okio.Base64
 
encode(byte[], byte[]) - Static method in class okio.Base64
 
encodeString(String, Charset) - Static method in class okio.ByteString
Returns a new byte string containing the charset-encoded bytes of s.
encodeUrl(byte[]) - Static method in class okio.Base64
 
encodeUtf8(String) - Static method in class okio.ByteString
Returns a new byte string containing the UTF-8 bytes of s.
end - Variable in class okio.Buffer.UnsafeCursor
 
endsWith(ByteString) - Method in class okio.ByteString
 
endsWith(byte[]) - Method in class okio.ByteString
 
enter() - Method in class okio.AsyncTimeout
 
equals(Object) - Method in class okio.Buffer
 
equals(Object) - Method in class okio.ByteString
 
equals(Object) - Method in class okio.SegmentedByteString
 
exhausted() - Method in class okio.Buffer
 
exhausted() - Method in interface okio.BufferedSource
Returns true if there are no more bytes in this source.
exhausted() - Method in class okio.RealBufferedSource
 
exit() - Method in class okio.AsyncTimeout
Returns true if the timeout occurred.
exit(boolean) - Method in class okio.AsyncTimeout
Throws an IOException if throwOnTimeout is true and a timeout occurred.
exit(IOException) - Method in class okio.AsyncTimeout
Returns either cause or an IOException that's caused by cause if a timeout occurred.
expandBuffer(int) - Method in class okio.Buffer.UnsafeCursor
Grow the buffer by adding a contiguous range of capacity in a single segment.

F

FCOMMENT - Static variable in class okio.GzipSource
 
FEXTRA - Static variable in class okio.GzipSource
 
FHCRC - Static variable in class okio.GzipSource
 
finishDeflate() - Method in class okio.DeflaterSink
 
flush() - Method in class okio.Buffer
 
flush() - Method in interface okio.BufferedSink
Writes all buffered data to the underlying sink, if one exists.
flush() - Method in class okio.DeflaterSink
 
flush() - Method in class okio.ForwardingSink
 
flush() - Method in class okio.GzipSink
 
flush() - Method in class okio.Pipe.PipeSink
 
flush() - Method in class okio.RealBufferedSink
 
flush() - Method in interface okio.Sink
Pushes all buffered bytes to their final destination.
FNAME - Static variable in class okio.GzipSource
 
ForwardingSink - Class in okio
A Sink which forwards calls to another.
ForwardingSink(Sink) - Constructor for class okio.ForwardingSink
 
ForwardingSource - Class in okio
A Source which forwards calls to another.
ForwardingSource(Source) - Constructor for class okio.ForwardingSource
 
ForwardingTimeout - Class in okio
A Timeout which forwards calls to another.
ForwardingTimeout(Timeout) - Constructor for class okio.ForwardingTimeout
 

G

get(int) - Method in class okio.Options
 
getByte(long) - Method in class okio.Buffer
Returns the byte at pos.
getByte(int) - Method in class okio.ByteString
Returns the byte at pos.
getByte(int) - Method in class okio.SegmentedByteString
 
GzipSink - Class in okio
A sink that uses GZIP to compress written data to another sink.
GzipSink(Sink) - Constructor for class okio.GzipSink
 
GzipSource - Class in okio
A source that uses GZIP to decompress data read from another source.
GzipSource(Source) - Constructor for class okio.GzipSource
 

H

hasDeadline() - Method in class okio.ForwardingTimeout
 
hasDeadline - Variable in class okio.Timeout
True if deadlineNanoTime is defined.
hasDeadline() - Method in class okio.Timeout
Returns true if a deadline is enabled.
hash() - Method in class okio.HashingSink
Returns the hash of the bytes accepted thus far and resets the internal state of this sink.
hash() - Method in class okio.HashingSource
Returns the hash of the bytes supplied thus far and resets the internal state of this source.
hashCode() - Method in class okio.Buffer
 
hashCode - Variable in class okio.ByteString
 
hashCode() - Method in class okio.ByteString
 
hashCode() - Method in class okio.SegmentedByteString
 
HashingSink - Class in okio
A sink that computes a hash of the full stream of bytes it has accepted.
HashingSink(Sink, String) - Constructor for class okio.HashingSink
 
HashingSink(Sink, ByteString, String) - Constructor for class okio.HashingSink
 
HashingSource - Class in okio
A source that computes a hash of the full stream of bytes it has supplied.
HashingSource(Source, String) - Constructor for class okio.HashingSource
 
HashingSource(Source, ByteString, String) - Constructor for class okio.HashingSource
 
head - Static variable in class okio.AsyncTimeout
The watchdog thread processes a linked list of pending timeouts, sorted in the order to be triggered.
head - Variable in class okio.Buffer
 
hex() - Method in class okio.ByteString
Returns this byte string encoded in hexadecimal.
hex() - Method in class okio.SegmentedByteString
 
HEX_DIGITS - Static variable in class okio.ByteString
 
hmac(String, ByteString) - Method in class okio.Buffer
 
hmac(String, ByteString) - Method in class okio.ByteString
 
hmacSha1(ByteString) - Method in class okio.Buffer
Returns the 160-bit SHA-1 HMAC of this buffer.
hmacSha1(ByteString) - Method in class okio.ByteString
Returns the 160-bit SHA-1 HMAC of this byte string.
hmacSha1(Sink, ByteString) - Static method in class okio.HashingSink
Returns a sink that uses the obsolete SHA-1 HMAC algorithm to produce 160-bit hashes.
hmacSha1(Source, ByteString) - Static method in class okio.HashingSource
Returns a sink that uses the obsolete SHA-1 HMAC algorithm to produce 160-bit hashes.
hmacSha1(ByteString) - Method in class okio.SegmentedByteString
 
hmacSha256(ByteString) - Method in class okio.Buffer
Returns the 256-bit SHA-256 HMAC of this buffer.
hmacSha256(ByteString) - Method in class okio.ByteString
Returns the 256-bit SHA-256 HMAC of this byte string.
hmacSha256(Sink, ByteString) - Static method in class okio.HashingSink
Returns a sink that uses the SHA-256 HMAC algorithm to produce 256-bit hashes.
hmacSha256(Source, ByteString) - Static method in class okio.HashingSource
Returns a sink that uses the SHA-256 HMAC algorithm to produce 256-bit hashes.
hmacSha256(ByteString) - Method in class okio.SegmentedByteString
 
hmacSha512(ByteString) - Method in class okio.Buffer
Returns the 512-bit SHA-512 HMAC of this buffer.
hmacSha512(ByteString) - Method in class okio.ByteString
Returns the 512-bit SHA-512 HMAC of this byte string.
hmacSha512(Sink, ByteString) - Static method in class okio.HashingSink
Returns a sink that uses the SHA-512 HMAC algorithm to produce 512-bit hashes.

I

IDLE_TIMEOUT_MILLIS - Static variable in class okio.AsyncTimeout
Duration for the watchdog thread to be idle before it shuts itself down.
IDLE_TIMEOUT_NANOS - Static variable in class okio.AsyncTimeout
 
indexOf(byte) - Method in class okio.Buffer
 
indexOf(byte, long) - Method in class okio.Buffer
Returns the index of b in this at or beyond fromIndex, or -1 if this buffer does not contain b in that range.
indexOf(byte, long, long) - Method in class okio.Buffer
 
indexOf(ByteString) - Method in class okio.Buffer
 
indexOf(ByteString, long) - Method in class okio.Buffer
 
indexOf(byte) - Method in interface okio.BufferedSource
Equivalent to indexOf(b, 0).
indexOf(byte, long) - Method in interface okio.BufferedSource
Returns the index of the first b in the buffer at or after fromIndex.
indexOf(byte, long, long) - Method in interface okio.BufferedSource
Returns the index of b if it is found in the range of fromIndex inclusive to toIndex exclusive.
indexOf(ByteString) - Method in interface okio.BufferedSource
Equivalent to indexOf(bytes, 0).
indexOf(ByteString, long) - Method in interface okio.BufferedSource
Returns the index of the first match for bytes in the buffer at or after fromIndex.
indexOf(ByteString) - Method in class okio.ByteString
 
indexOf(ByteString, int) - Method in class okio.ByteString
 
indexOf(byte[]) - Method in class okio.ByteString
 
indexOf(byte[], int) - Method in class okio.ByteString
 
indexOf(byte) - Method in class okio.RealBufferedSource
 
indexOf(byte, long) - Method in class okio.RealBufferedSource
 
indexOf(byte, long, long) - Method in class okio.RealBufferedSource
 
indexOf(ByteString) - Method in class okio.RealBufferedSource
 
indexOf(ByteString, long) - Method in class okio.RealBufferedSource
 
indexOf(byte[], int) - Method in class okio.SegmentedByteString
 
indexOfElement(ByteString) - Method in class okio.Buffer
 
indexOfElement(ByteString, long) - Method in class okio.Buffer
 
indexOfElement(ByteString) - Method in interface okio.BufferedSource
indexOfElement(ByteString, long) - Method in interface okio.BufferedSource
Returns the first index in this buffer that is at or after fromIndex and that contains any of the bytes in targetBytes.
indexOfElement(ByteString) - Method in class okio.RealBufferedSource
 
indexOfElement(ByteString, long) - Method in class okio.RealBufferedSource
 
inflater - Variable in class okio.GzipSource
The inflater used to decompress the deflated body.
inflater - Variable in class okio.InflaterSource
 
inflaterSource - Variable in class okio.GzipSource
The inflater source takes care of moving data between compressed source and decompressed sink buffers.
InflaterSource - Class in okio
A source that uses DEFLATE to decompress data read from another source.
InflaterSource(Source, Inflater) - Constructor for class okio.InflaterSource
 
InflaterSource(BufferedSource, Inflater) - Constructor for class okio.InflaterSource
This package-private constructor shares a buffer with its trusted caller.
inputStream() - Method in class okio.Buffer
 
inputStream() - Method in interface okio.BufferedSource
Returns an input stream that reads from this source.
inputStream() - Method in class okio.RealBufferedSource
 
inQueue - Variable in class okio.AsyncTimeout
True if this node is currently in the queue.
internalArray() - Method in class okio.ByteString
Returns the bytes of this string without a defensive copy.
internalArray() - Method in class okio.SegmentedByteString
 
isAndroidGetsocknameError(AssertionError) - Static method in class okio.Okio
Returns true if e is due to a firmware bug fixed after Android 4.2.2.
isOpen() - Method in class okio.Buffer
 
isOpen() - Method in class okio.RealBufferedSink
 
isOpen() - Method in class okio.RealBufferedSource
 

L

lastIndexOf(ByteString) - Method in class okio.ByteString
 
lastIndexOf(ByteString, int) - Method in class okio.ByteString
 
lastIndexOf(byte[]) - Method in class okio.ByteString
 
lastIndexOf(byte[], int) - Method in class okio.ByteString
 
lastIndexOf(byte[], int) - Method in class okio.SegmentedByteString
 
limit - Variable in class okio.Segment
The first byte of available data ready to be written to.
logger - Static variable in class okio.Okio
 

M

mac - Variable in class okio.HashingSink
 
mac - Variable in class okio.HashingSource
 
main(String...) - Static method in class okio.samples.Randoms
 
MAP - Static variable in class okio.Base64
 
MAX_SIZE - Static variable in class okio.SegmentPool
The maximum number of bytes to pool.
maxBufferSize - Variable in class okio.Pipe
 
md5() - Method in class okio.Buffer
Returns the 128-bit MD5 hash of this buffer.
md5() - Method in class okio.ByteString
Returns the 128-bit MD5 hash of this byte string.
md5(Sink) - Static method in class okio.HashingSink
Returns a sink that uses the obsolete MD5 hash algorithm to produce 128-bit hashes.
md5(Source) - Static method in class okio.HashingSource
Returns a sink that uses the obsolete MD5 hash algorithm to produce 128-bit hashes.
md5() - Method in class okio.SegmentedByteString
 
messageDigest - Variable in class okio.HashingSink
 
messageDigest - Variable in class okio.HashingSource
 

N

newTimeoutException(IOException) - Method in class okio.AsyncTimeout
Returns an IOException to represent a timeout.
next - Variable in class okio.AsyncTimeout
The next node in the linked list.
next() - Method in class okio.Buffer.UnsafeCursor
Seeks to the next range of bytes, advancing the offset by end - start.
next - Variable in class okio.Segment
Next segment in a linked or circularly-linked list.
next - Static variable in class okio.SegmentPool
Singly-linked list of segments.
NONE - Static variable in class okio.Timeout
An empty timeout that neither tracks nor detects timeouts.

O

of(byte...) - Static method in class okio.ByteString
Returns a new byte string containing a clone of the bytes of data.
of(byte[], int, int) - Static method in class okio.ByteString
Returns a new byte string containing a copy of byteCount bytes of data starting at offset.
of(ByteBuffer) - Static method in class okio.ByteString
 
of(ByteString...) - Static method in class okio.Options
 
offset - Variable in class okio.Buffer.UnsafeCursor
 
okio - package okio
Okio complements java.io and java.nio to make it much easier to access, store, and process your data.
Okio - Class in okio
Essential APIs for working with Okio.
Okio() - Constructor for class okio.Okio
 
okio.samples - package okio.samples
 
Options - Class in okio
An indexed set of values that may be read with BufferedSource.select(okio.Options).
Options(ByteString[]) - Constructor for class okio.Options
 
outputStream() - Method in class okio.Buffer
 
outputStream() - Method in interface okio.BufferedSink
Returns an output stream that writes to this sink.
outputStream() - Method in class okio.RealBufferedSink
 
owner - Variable in class okio.Segment
True if this segment owns the byte array and can append to it, extending limit.

P

Pipe - Class in okio
A source and a sink that are attached.
Pipe(long) - Constructor for class okio.Pipe
 
Pipe.PipeSink - Class in okio
 
Pipe.PipeSource - Class in okio
 
PipeSink() - Constructor for class okio.Pipe.PipeSink
 
PipeSource() - Constructor for class okio.Pipe.PipeSource
 
pop() - Method in class okio.Segment
Removes this segment of a circularly-linked list and returns its successor.
pos - Variable in class okio.Segment
The next byte of application data byte to read in this segment.
prev - Variable in class okio.Segment
Previous segment in a circularly-linked list.
push(Segment) - Method in class okio.Segment
Appends segment after this segment in the circularly-linked list.

R

random - Variable in class okio.samples.Randoms.RandomSource
 
Randoms - Class in okio.samples
 
Randoms() - Constructor for class okio.samples.Randoms
 
Randoms.RandomSource - Class in okio.samples
 
RandomSource(Random, long) - Constructor for class okio.samples.Randoms.RandomSource
 
rangeEquals(long, ByteString) - Method in class okio.Buffer
 
rangeEquals(long, ByteString, int, int) - Method in class okio.Buffer
 
rangeEquals(Segment, int, ByteString, int, int) - Method in class okio.Buffer
Returns true if the range within this buffer starting at segmentPos in segment is equal to bytes[bytesOffset..bytesLimit).
rangeEquals(long, ByteString) - Method in interface okio.BufferedSource
Returns true if the bytes at offset in this source equal bytes.
rangeEquals(long, ByteString, int, int) - Method in interface okio.BufferedSource
Returns true if byteCount bytes at offset in this source equal bytes at bytesOffset.
rangeEquals(int, ByteString, int, int) - Method in class okio.ByteString
Returns true if the bytes of this in [offset..offset+byteCount) equal the bytes of other in [otherOffset..otherOffset+byteCount).
rangeEquals(int, byte[], int, int) - Method in class okio.ByteString
Returns true if the bytes of this in [offset..offset+byteCount) equal the bytes of other in [otherOffset..otherOffset+byteCount).
rangeEquals(long, ByteString) - Method in class okio.RealBufferedSource
 
rangeEquals(long, ByteString, int, int) - Method in class okio.RealBufferedSource
 
rangeEquals(int, ByteString, int, int) - Method in class okio.SegmentedByteString
 
rangeEquals(int, byte[], int, int) - Method in class okio.SegmentedByteString
 
read(byte[]) - Method in class okio.Buffer
 
read(byte[], int, int) - Method in class okio.Buffer
 
read(ByteBuffer) - Method in class okio.Buffer
 
read(Buffer, long) - Method in class okio.Buffer
 
read(byte[]) - Method in interface okio.BufferedSource
Removes up to sink.length bytes from this and copies them into sink.
read(byte[], int, int) - Method in interface okio.BufferedSource
Removes up to byteCount bytes from this and copies them into sink at offset.
read(InputStream, int) - Static method in class okio.ByteString
Reads count bytes from in and returns the result.
read(Buffer, long) - Method in class okio.ForwardingSource
 
read(Buffer, long) - Method in class okio.GzipSource
 
read(Buffer, long) - Method in class okio.HashingSource
 
read(Buffer, long) - Method in class okio.InflaterSource
 
read(Buffer, long) - Method in class okio.Pipe.PipeSource
 
read(Buffer, long) - Method in class okio.RealBufferedSource
 
read(byte[]) - Method in class okio.RealBufferedSource
 
read(byte[], int, int) - Method in class okio.RealBufferedSource
 
read(ByteBuffer) - Method in class okio.RealBufferedSource
 
read(Buffer, long) - Method in class okio.samples.Randoms.RandomSource
 
read(Buffer, long) - Method in interface okio.Source
Removes at least 1, and up to byteCount bytes from this and appends them to sink.
readAll(Sink) - Method in class okio.Buffer
 
readAll(Sink) - Method in interface okio.BufferedSource
Removes all bytes from this and appends them to sink.
readAll(Sink) - Method in class okio.RealBufferedSource
 
readAndWriteUnsafe() - Method in class okio.Buffer
 
readAndWriteUnsafe(Buffer.UnsafeCursor) - Method in class okio.Buffer
 
readByte() - Method in class okio.Buffer
 
readByte() - Method in interface okio.BufferedSource
Removes a byte from this source and returns it.
readByte() - Method in class okio.RealBufferedSource
 
readByteArray() - Method in class okio.Buffer
 
readByteArray(long) - Method in class okio.Buffer
 
readByteArray() - Method in interface okio.BufferedSource
Removes all bytes from this and returns them as a byte array.
readByteArray(long) - Method in interface okio.BufferedSource
Removes byteCount bytes from this and returns them as a byte array.
readByteArray() - Method in class okio.RealBufferedSource
 
readByteArray(long) - Method in class okio.RealBufferedSource
 
readByteString() - Method in class okio.Buffer
 
readByteString(long) - Method in class okio.Buffer
 
readByteString() - Method in interface okio.BufferedSource
Removes all bytes bytes from this and returns them as a byte string.
readByteString(long) - Method in interface okio.BufferedSource
Removes byteCount bytes from this and returns them as a byte string.
readByteString() - Method in class okio.RealBufferedSource
 
readByteString(long) - Method in class okio.RealBufferedSource
 
readDecimalLong() - Method in class okio.Buffer
 
readDecimalLong() - Method in interface okio.BufferedSource
Reads a long from this source in signed decimal form (i.e., as a string in base 10 with optional leading '-').
readDecimalLong() - Method in class okio.RealBufferedSource
 
readFrom(InputStream) - Method in class okio.Buffer
Read and exhaust bytes from in to this.
readFrom(InputStream, long) - Method in class okio.Buffer
Read byteCount bytes from in to this.
readFrom(InputStream, long, boolean) - Method in class okio.Buffer
 
readFully(Buffer, long) - Method in class okio.Buffer
 
readFully(byte[]) - Method in class okio.Buffer
 
readFully(byte[]) - Method in interface okio.BufferedSource
Removes exactly sink.length bytes from this and copies them into sink.
readFully(Buffer, long) - Method in interface okio.BufferedSource
Removes exactly byteCount bytes from this and appends them to sink.
readFully(byte[]) - Method in class okio.RealBufferedSource
 
readFully(Buffer, long) - Method in class okio.RealBufferedSource
 
readHexadecimalUnsignedLong() - Method in class okio.Buffer
 
readHexadecimalUnsignedLong() - Method in interface okio.BufferedSource
Reads a long form this source in hexadecimal form (i.e., as a string in base 16).
readHexadecimalUnsignedLong() - Method in class okio.RealBufferedSource
 
readInt() - Method in class okio.Buffer
 
readInt() - Method in interface okio.BufferedSource
Removes four bytes from this source and returns a big-endian int.
readInt() - Method in class okio.RealBufferedSource
 
readIntLe() - Method in class okio.Buffer
 
readIntLe() - Method in interface okio.BufferedSource
Removes four bytes from this source and returns a little-endian int.
readIntLe() - Method in class okio.RealBufferedSource
 
readLong() - Method in class okio.Buffer
 
readLong() - Method in interface okio.BufferedSource
Removes eight bytes from this source and returns a big-endian long.
readLong() - Method in class okio.RealBufferedSource
 
readLongLe() - Method in class okio.Buffer
 
readLongLe() - Method in interface okio.BufferedSource
Removes eight bytes from this source and returns a little-endian long.
readLongLe() - Method in class okio.RealBufferedSource
 
readObject(ObjectInputStream) - Method in class okio.ByteString
 
readShort() - Method in class okio.Buffer
 
readShort() - Method in interface okio.BufferedSource
Removes two bytes from this source and returns a big-endian short.
readShort() - Method in class okio.RealBufferedSource
 
readShortLe() - Method in class okio.Buffer
 
readShortLe() - Method in interface okio.BufferedSource
Removes two bytes from this source and returns a little-endian short.
readShortLe() - Method in class okio.RealBufferedSource
 
readString(Charset) - Method in class okio.Buffer
 
readString(long, Charset) - Method in class okio.Buffer
 
readString(Charset) - Method in interface okio.BufferedSource
Removes all bytes from this, decodes them as charset, and returns the string.
readString(long, Charset) - Method in interface okio.BufferedSource
Removes byteCount bytes from this, decodes them as charset, and returns the string.
readString(Charset) - Method in class okio.RealBufferedSource
 
readString(long, Charset) - Method in class okio.RealBufferedSource
 
readUnsafe() - Method in class okio.Buffer
 
readUnsafe(Buffer.UnsafeCursor) - Method in class okio.Buffer
 
readUtf8() - Method in class okio.Buffer
 
readUtf8(long) - Method in class okio.Buffer
 
readUtf8() - Method in interface okio.BufferedSource
Removes all bytes from this, decodes them as UTF-8, and returns the string.
readUtf8(long) - Method in interface okio.BufferedSource
Removes byteCount bytes from this, decodes them as UTF-8, and returns the string.
readUtf8() - Method in class okio.RealBufferedSource
 
readUtf8(long) - Method in class okio.RealBufferedSource
 
readUtf8CodePoint() - Method in class okio.Buffer
 
readUtf8CodePoint() - Method in interface okio.BufferedSource
Removes and returns a single UTF-8 code point, reading between 1 and 4 bytes as necessary.
readUtf8CodePoint() - Method in class okio.RealBufferedSource
 
readUtf8Line() - Method in class okio.Buffer
 
readUtf8Line(long) - Method in class okio.Buffer
 
readUtf8Line() - Method in interface okio.BufferedSource
Removes and returns characters up to but not including the next line break.
readUtf8Line() - Method in class okio.RealBufferedSource
 
readUtf8LineStrict() - Method in class okio.Buffer
 
readUtf8LineStrict(long) - Method in class okio.Buffer
 
readUtf8LineStrict() - Method in interface okio.BufferedSource
Removes and returns characters up to but not including the next line break.
readUtf8LineStrict(long) - Method in interface okio.BufferedSource
Like BufferedSource.readUtf8LineStrict(), except this allows the caller to specify the longest allowed match.
readUtf8LineStrict() - Method in class okio.RealBufferedSource
 
readUtf8LineStrict(long) - Method in class okio.RealBufferedSource
 
readWrite - Variable in class okio.Buffer.UnsafeCursor
 
RealBufferedSink - Class in okio
 
RealBufferedSink(Sink) - Constructor for class okio.RealBufferedSink
 
RealBufferedSource - Class in okio
 
RealBufferedSource(Source) - Constructor for class okio.RealBufferedSource
 
recycle(Segment) - Static method in class okio.SegmentPool
 
refill() - Method in class okio.InflaterSource
Refills the inflater with compressed data if it needs input.
releaseInflatedBytes() - Method in class okio.InflaterSource
When the inflater has processed compressed data, remove it from the buffer.
remainingNanos(long) - Method in class okio.AsyncTimeout
Returns the amount of time left until the time out.
REPLACEMENT_CHARACTER - Static variable in class okio.Buffer
 
request(long) - Method in class okio.Buffer
 
request(long) - Method in interface okio.BufferedSource
Returns true when the buffer contains at least byteCount bytes, expanding it as necessary.
request(long) - Method in class okio.RealBufferedSource
 
require(long) - Method in class okio.Buffer
 
require(long) - Method in interface okio.BufferedSource
Returns when the buffer contains at least byteCount bytes.
require(long) - Method in class okio.RealBufferedSource
 
resizeBuffer(long) - Method in class okio.Buffer.UnsafeCursor
Change the size of the buffer so that it equals newSize by either adding new capacity at the end or truncating the buffer at the end.
reverseBytesInt(int) - Static method in class okio.Util
 
reverseBytesLong(long) - Static method in class okio.Util
 
reverseBytesShort(short) - Static method in class okio.Util
 
run() - Method in class okio.AsyncTimeout.Watchdog
 
run() - Method in class okio.samples.Randoms
 

S

scheduleTimeout(AsyncTimeout, long, boolean) - Static method in class okio.AsyncTimeout
 
section - Variable in class okio.GzipSource
The current section.
SECTION_BODY - Static variable in class okio.GzipSource
 
SECTION_DONE - Static variable in class okio.GzipSource
 
SECTION_HEADER - Static variable in class okio.GzipSource
 
SECTION_TRAILER - Static variable in class okio.GzipSource
 
seek(long) - Method in class okio.Buffer.UnsafeCursor
Reposition the cursor so that the data at offset is readable at data[start].
segment - Variable in class okio.Buffer.UnsafeCursor
 
Segment - Class in okio
A segment of a buffer.
Segment() - Constructor for class okio.Segment
 
Segment(byte[], int, int, boolean, boolean) - Constructor for class okio.Segment
 
segment(int) - Method in class okio.SegmentedByteString
Returns the index of the segment that contains the byte at pos.
SegmentedByteString - Class in okio
An immutable byte string composed of segments of byte arrays.
SegmentedByteString(Buffer, int) - Constructor for class okio.SegmentedByteString
 
SegmentPool - Class in okio
A collection of unused segments, necessary to avoid GC churn and zero-fill.
SegmentPool() - Constructor for class okio.SegmentPool
 
segments - Variable in class okio.SegmentedByteString
 
segmentSizes() - Method in class okio.Buffer
For testing.
select(Options) - Method in class okio.Buffer
 
select(Options) - Method in interface okio.BufferedSource
Finds the first string in options that is a prefix of this buffer, consumes it from this buffer, and returns its index.
select(Options) - Method in class okio.RealBufferedSource
 
selectPrefix(Options) - Method in class okio.Buffer
Returns the index of a value in options that is either the prefix of this buffer, or that this buffer is a prefix of.
serialVersionUID - Static variable in class okio.ByteString
 
setDelegate(Timeout) - Method in class okio.ForwardingTimeout
 
sha1() - Method in class okio.Buffer
Returns the 160-bit SHA-1 hash of this buffer.
sha1() - Method in class okio.ByteString
Returns the 160-bit SHA-1 hash of this byte string.
sha1(Sink) - Static method in class okio.HashingSink
Returns a sink that uses the obsolete SHA-1 hash algorithm to produce 160-bit hashes.
sha1(Source) - Static method in class okio.HashingSource
Returns a sink that uses the obsolete SHA-1 hash algorithm to produce 160-bit hashes.
sha1() - Method in class okio.SegmentedByteString
 
sha256() - Method in class okio.Buffer
Returns the 256-bit SHA-256 hash of this buffer.
sha256() - Method in class okio.ByteString
Returns the 256-bit SHA-256 hash of this byte string.
sha256(Sink) - Static method in class okio.HashingSink
Returns a sink that uses the SHA-256 hash algorithm to produce 256-bit hashes.
sha256(Source) - Static method in class okio.HashingSource
Returns a sink that uses the SHA-256 hash algorithm to produce 256-bit hashes.
sha256() - Method in class okio.SegmentedByteString
 
sha512() - Method in class okio.Buffer
Returns the 512-bit SHA-512 hash of this buffer.
sha512() - Method in class okio.ByteString
Returns the 512-bit SHA-512 hash of this byte string.
sha512(Sink) - Static method in class okio.HashingSink
Returns a sink that uses the SHA-512 hash algorithm to produce 512-bit hashes.
SHARE_MINIMUM - Static variable in class okio.Segment
Segments will be shared when doing so avoids arraycopy() of this many bytes.
shared - Variable in class okio.Segment
True if other segments or byte strings use the same byte array.
sharedCopy() - Method in class okio.Segment
Returns a new segment that shares the underlying byte array with this.
sink(Sink) - Method in class okio.AsyncTimeout
Returns a new sink that delegates to sink, using this to implement timeouts.
sink - Variable in class okio.DeflaterSink
 
sink - Variable in class okio.GzipSink
Sink into which the GZIP format is written.
sink(OutputStream) - Static method in class okio.Okio
Returns a sink that writes to out.
sink(OutputStream, Timeout) - Static method in class okio.Okio
 
sink(Socket) - Static method in class okio.Okio
Returns a sink that writes to socket.
sink(File) - Static method in class okio.Okio
Returns a sink that writes to file.
sink(Path, OpenOption...) - Static method in class okio.Okio
Returns a sink that writes to path.
sink - Variable in class okio.Pipe
 
sink() - Method in class okio.Pipe
 
sink - Variable in class okio.RealBufferedSink
 
Sink - Interface in okio
Receives a stream of bytes.
sinkClosed - Variable in class okio.Pipe
 
size - Variable in class okio.Buffer
 
size() - Method in class okio.Buffer
Returns the number of bytes currently in this buffer.
size() - Method in class okio.ByteString
Returns the number of bytes in this ByteString.
size() - Method in class okio.Options
 
SIZE - Static variable in class okio.Segment
The size of all segments in bytes.
size() - Method in class okio.SegmentedByteString
 
size(String) - Static method in class okio.Utf8
Returns the number of bytes used to encode string as UTF-8 when using ByteString.encodeUtf8(java.lang.String) or Buffer.writeUtf8(String).
size(String, int, int) - Static method in class okio.Utf8
Returns the number of bytes used to encode the slice of string as UTF-8 when using BufferedSink.writeUtf8(String, int, int).
skip(long) - Method in class okio.Buffer
Discards byteCount bytes from the head of this buffer.
skip(long) - Method in interface okio.BufferedSource
Reads and discards byteCount bytes from this source.
skip(long) - Method in class okio.RealBufferedSource
 
snapshot() - Method in class okio.Buffer
Returns an immutable copy of this buffer as a byte string.
snapshot(int) - Method in class okio.Buffer
Returns an immutable copy of the first byteCount bytes of this buffer as a byte string.
sneakyRethrow(Throwable) - Static method in class okio.Util
Throws t, even if the declared throws clause doesn't permit it.
sneakyThrow2(Throwable) - Static method in class okio.Util
 
source(Source) - Method in class okio.AsyncTimeout
Returns a new source that delegates to source, using this to implement timeouts.
source - Variable in class okio.GzipSource
Our source should yield a GZIP header (which we consume directly), followed by deflated bytes (which we consume via an InflaterSource), followed by a GZIP trailer (which we also consume directly).
source - Variable in class okio.InflaterSource
 
source(InputStream) - Static method in class okio.Okio
Returns a source that reads from in.
source(InputStream, Timeout) - Static method in class okio.Okio
 
source(File) - Static method in class okio.Okio
Returns a source that reads from file.
source(Path, OpenOption...) - Static method in class okio.Okio
Returns a source that reads from path.
source(Socket) - Static method in class okio.Okio
Returns a source that reads from socket.
source - Variable in class okio.Pipe
 
source() - Method in class okio.Pipe
 
source - Variable in class okio.RealBufferedSource
 
Source - Interface in okio
Supplies a stream of bytes.
sourceClosed - Variable in class okio.Pipe
 
split(int) - Method in class okio.Segment
Splits this head of a circularly-linked list into two segments.
start - Variable in class okio.Buffer.UnsafeCursor
 
startsWith(ByteString) - Method in class okio.ByteString
 
startsWith(byte[]) - Method in class okio.ByteString
 
string(Charset) - Method in class okio.ByteString
Constructs a new String by decoding the bytes using charset.
string(Charset) - Method in class okio.SegmentedByteString
 
substring(int) - Method in class okio.ByteString
Returns a byte string that is a substring of this byte string, beginning at the specified index until the end of this string.
substring(int, int) - Method in class okio.ByteString
Returns a byte string that is a substring of this byte string, beginning at the specified beginIndex and ends at the specified endIndex.
substring(int) - Method in class okio.SegmentedByteString
 
substring(int, int) - Method in class okio.SegmentedByteString
 

T

take() - Static method in class okio.SegmentPool
 
throwIfReached() - Method in class okio.ForwardingTimeout
 
throwIfReached() - Method in class okio.Timeout
Throws an InterruptedIOException if the deadline has been reached or if the current thread has been interrupted.
timedOut() - Method in class okio.AsyncTimeout
Invoked by the watchdog thread when the time between calls to AsyncTimeout.enter() and AsyncTimeout.exit() has exceeded the timeout.
timeout() - Method in class okio.Buffer
 
timeout() - Method in class okio.DeflaterSink
 
timeout() - Method in class okio.ForwardingSink
 
timeout() - Method in class okio.ForwardingSource
 
timeout(long, TimeUnit) - Method in class okio.ForwardingTimeout
 
timeout() - Method in class okio.GzipSink
 
timeout() - Method in class okio.GzipSource
 
timeout() - Method in class okio.InflaterSource
 
timeout(Socket) - Static method in class okio.Okio
 
timeout - Variable in class okio.Pipe.PipeSink
 
timeout() - Method in class okio.Pipe.PipeSink
 
timeout - Variable in class okio.Pipe.PipeSource
 
timeout() - Method in class okio.Pipe.PipeSource
 
timeout() - Method in class okio.RealBufferedSink
 
timeout() - Method in class okio.RealBufferedSource
 
timeout() - Method in class okio.samples.Randoms.RandomSource
 
timeout() - Method in interface okio.Sink
Returns the timeout for this sink.
timeout() - Method in interface okio.Source
Returns the timeout for this source.
Timeout - Class in okio
A policy on how much time to spend on a task before giving up.
Timeout() - Constructor for class okio.Timeout
 
timeout(long, TimeUnit) - Method in class okio.Timeout
Wait at most timeout time before aborting an operation.
TIMEOUT_WRITE_SIZE - Static variable in class okio.AsyncTimeout
Don't write more than 64 KiB of data at a time, give or take a segment.
timeoutAt - Variable in class okio.AsyncTimeout
If scheduled, this is the time that the watchdog should time this out.
timeoutNanos() - Method in class okio.ForwardingTimeout
 
timeoutNanos - Variable in class okio.Timeout
 
timeoutNanos() - Method in class okio.Timeout
Returns the timeout in nanoseconds, or 0 for no timeout.
toAsciiLowercase() - Method in class okio.ByteString
Returns a byte string equal to this byte string, but with the bytes 'A' through 'Z' replaced with the corresponding byte in 'a' through 'z'.
toAsciiLowercase() - Method in class okio.SegmentedByteString
 
toAsciiUppercase() - Method in class okio.ByteString
Returns a byte string equal to this byte string, but with the bytes 'a' through 'z' replaced with the corresponding byte in 'A' through 'Z'.
toAsciiUppercase() - Method in class okio.SegmentedByteString
 
toByteArray() - Method in class okio.ByteString
Returns a byte array containing a copy of the bytes in this ByteString.
toByteArray() - Method in class okio.SegmentedByteString
 
toByteString() - Method in class okio.SegmentedByteString
Returns a copy as a non-segmented byte string.
toString() - Method in class okio.Buffer
Returns a human-readable string that describes the contents of this buffer.
toString() - Method in class okio.ByteString
Returns a human-readable string that describes the contents of this byte string.
toString() - Method in class okio.DeflaterSink
 
toString() - Method in class okio.ForwardingSink
 
toString() - Method in class okio.ForwardingSource
 
toString() - Method in class okio.RealBufferedSink
 
toString() - Method in class okio.RealBufferedSource
 
toString() - Method in class okio.SegmentedByteString
 

U

UnsafeCursor() - Constructor for class okio.Buffer.UnsafeCursor
 
unsharedCopy() - Method in class okio.Segment
Returns a new segment that its own private copy of the underlying byte array.
updateCrc(Buffer, long) - Method in class okio.GzipSink
Updates the CRC with the given bytes.
updateCrc(Buffer, long, long) - Method in class okio.GzipSource
Updates the CRC with the given bytes.
URL_MAP - Static variable in class okio.Base64
 
utf8 - Variable in class okio.ByteString
 
utf8() - Method in class okio.ByteString
Constructs a new String by decoding the bytes as UTF-8.
utf8() - Method in class okio.SegmentedByteString
 
Utf8 - Class in okio
Okio assumes most applications use UTF-8 exclusively, and offers optimized implementations of common operations on UTF-8 strings.
Utf8() - Constructor for class okio.Utf8
 
UTF_8 - Static variable in class okio.Util
A cheap and type-safe constant for the UTF-8 Charset.
Util - Class in okio
 
Util() - Constructor for class okio.Util
 

W

waitUntilNotified(Object) - Method in class okio.Timeout
Waits on monitor until it is notified.
Watchdog() - Constructor for class okio.AsyncTimeout.Watchdog
 
writableSegment(int) - Method in class okio.Buffer
Returns a tail segment that we can write at least minimumCapacity bytes to, creating it if necessary.
write(ByteString) - Method in class okio.Buffer
 
write(byte[]) - Method in class okio.Buffer
 
write(byte[], int, int) - Method in class okio.Buffer
 
write(ByteBuffer) - Method in class okio.Buffer
 
write(Source, long) - Method in class okio.Buffer
 
write(Buffer, long) - Method in class okio.Buffer
 
write(ByteString) - Method in interface okio.BufferedSink
 
write(byte[]) - Method in interface okio.BufferedSink
Like OutputStream.write(byte[]), this writes a complete byte array to this sink.
write(byte[], int, int) - Method in interface okio.BufferedSink
Like OutputStream.write(byte[], int, int), this writes byteCount bytes of source, starting at offset.
write(Source, long) - Method in interface okio.BufferedSink
Removes byteCount bytes from source and appends them to this sink.
write(OutputStream) - Method in class okio.ByteString
Writes the contents of this byte string to out.
write(Buffer) - Method in class okio.ByteString
Writes the contents of this byte string to buffer.
write(Buffer, long) - Method in class okio.DeflaterSink
 
write(Buffer, long) - Method in class okio.ForwardingSink
 
write(Buffer, long) - Method in class okio.GzipSink
 
write(Buffer, long) - Method in class okio.HashingSink
 
write(Buffer, long) - Method in class okio.Pipe.PipeSink
 
write(Buffer, long) - Method in class okio.RealBufferedSink
 
write(ByteString) - Method in class okio.RealBufferedSink
 
write(byte[]) - Method in class okio.RealBufferedSink
 
write(byte[], int, int) - Method in class okio.RealBufferedSink
 
write(ByteBuffer) - Method in class okio.RealBufferedSink
 
write(Source, long) - Method in class okio.RealBufferedSink
 
write(OutputStream) - Method in class okio.SegmentedByteString
 
write(Buffer) - Method in class okio.SegmentedByteString
 
write(Buffer, long) - Method in interface okio.Sink
Removes byteCount bytes from source and appends them to this.
writeAll(Source) - Method in class okio.Buffer
 
writeAll(Source) - Method in interface okio.BufferedSink
Removes all bytes from source and appends them to this sink.
writeAll(Source) - Method in class okio.RealBufferedSink
 
writeByte(int) - Method in class okio.Buffer
 
writeByte(int) - Method in interface okio.BufferedSink
Writes a byte to this sink.
writeByte(int) - Method in class okio.RealBufferedSink
 
writeDecimalLong(long) - Method in class okio.Buffer
 
writeDecimalLong(long) - Method in interface okio.BufferedSink
Writes a long to this sink in signed decimal form (i.e., as a string in base 10).
writeDecimalLong(long) - Method in class okio.RealBufferedSink
 
writeFooter() - Method in class okio.GzipSink
 
writeHeader() - Method in class okio.GzipSink
 
writeHexadecimalUnsignedLong(long) - Method in class okio.Buffer
 
writeHexadecimalUnsignedLong(long) - Method in interface okio.BufferedSink
Writes a long to this sink in hexadecimal form (i.e., as a string in base 16).
writeHexadecimalUnsignedLong(long) - Method in class okio.RealBufferedSink
 
writeInt(int) - Method in class okio.Buffer
 
writeInt(int) - Method in interface okio.BufferedSink
Writes a big-endian int to this sink using four bytes.
writeInt(int) - Method in class okio.RealBufferedSink
 
writeIntLe(int) - Method in class okio.Buffer
 
writeIntLe(int) - Method in interface okio.BufferedSink
Writes a little-endian int to this sink using four bytes.
writeIntLe(int) - Method in class okio.RealBufferedSink
 
writeLong(long) - Method in class okio.Buffer
 
writeLong(long) - Method in interface okio.BufferedSink
Writes a big-endian long to this sink using eight bytes.
writeLong(long) - Method in class okio.RealBufferedSink
 
writeLongLe(long) - Method in class okio.Buffer
 
writeLongLe(long) - Method in interface okio.BufferedSink
Writes a little-endian long to this sink using eight bytes.
writeLongLe(long) - Method in class okio.RealBufferedSink
 
writeObject(ObjectOutputStream) - Method in class okio.ByteString
 
writeReplace() - Method in class okio.SegmentedByteString
 
writeShort(int) - Method in class okio.Buffer
 
writeShort(int) - Method in interface okio.BufferedSink
Writes a big-endian short to this sink using two bytes.
writeShort(int) - Method in class okio.RealBufferedSink
 
writeShortLe(int) - Method in class okio.Buffer
 
writeShortLe(int) - Method in interface okio.BufferedSink
Writes a little-endian short to this sink using two bytes.
writeShortLe(int) - Method in class okio.RealBufferedSink
 
writeString(String, Charset) - Method in class okio.Buffer
 
writeString(String, int, int, Charset) - Method in class okio.Buffer
 
writeString(String, Charset) - Method in interface okio.BufferedSink
Encodes string in charset and writes it to this sink.
writeString(String, int, int, Charset) - Method in interface okio.BufferedSink
Encodes the characters at beginIndex up to endIndex from string in charset and writes it to this sink.
writeString(String, Charset) - Method in class okio.RealBufferedSink
 
writeString(String, int, int, Charset) - Method in class okio.RealBufferedSink
 
writeTo(OutputStream) - Method in class okio.Buffer
Write the contents of this to out.
writeTo(OutputStream, long) - Method in class okio.Buffer
Write byteCount bytes from this to out.
writeTo(Segment, int) - Method in class okio.Segment
Moves byteCount bytes from this segment to sink.
writeUtf8(String) - Method in class okio.Buffer
 
writeUtf8(String, int, int) - Method in class okio.Buffer
 
writeUtf8(String) - Method in interface okio.BufferedSink
Encodes string in UTF-8 and writes it to this sink.
writeUtf8(String, int, int) - Method in interface okio.BufferedSink
Encodes the characters at beginIndex up to endIndex from string in UTF-8 and writes it to this sink.
writeUtf8(String) - Method in class okio.RealBufferedSink
 
writeUtf8(String, int, int) - Method in class okio.RealBufferedSink
 
writeUtf8CodePoint(int) - Method in class okio.Buffer
 
writeUtf8CodePoint(int) - Method in interface okio.BufferedSink
Encodes codePoint in UTF-8 and writes it to this sink.
writeUtf8CodePoint(int) - Method in class okio.RealBufferedSink
 
A B C D E F G H I L M N O P R S T U W 
Skip navigation links