- 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.
- 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.PeekSource
-
- 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
-
- 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
-
- 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, boolean) - Method in class okio.Buffer
-
Returns the index of a value in options that is a prefix of this buffer.
- 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
-
- size(String, int, int) - Static method in class okio.Utf8
-
- 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
-
- 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
-
- 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() - Method in class okio.PeekSource
-
- 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
-
- trie - Variable in class okio.Options
-
- 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
-