SdkBufferedSource  
    A source that keeps a buffer internally such that small reads are performant. It also allows peeking ahead, buffering data as necessary, before consuming it.
Inheritors
Properties
Functions
Returns true if there are no more bytes in this source. This will block until there are bytes to read or the source is definitely exhausted.
Returns true if there are no more bytes in this source. This will block until there are bytes to read or the source is definitely exhausted.
Get an input stream that reads from this source
Returns a new SdkBufferedSource that can read data from this source without consuming it. The returned source becomes invalid once this source is next read or closed.
Returns a new SdkBufferedSource that can read data from this source without consuming it. The returned source becomes invalid once this source is next read or closed.
Returns a new SdkBufferedSource that can read data from this source without consuming it. The returned source becomes invalid once this source is next read or closed.
Reads all bytes from this source and returns them as a byte array
Reads byteCount bytes from this source and returns them as a byte array
Reads all bytes from this source and returns them as a byte array
Reads byteCount bytes from this source and returns them as a byte array
Reads all bytes from this source and returns them as a byte array
Reads byteCount bytes from this source and returns them as a byte array
Read four bytes in big-endian order from this source and returns them as an int.
Read four bytes from this source and returns a little-endian int.
Read four bytes in little-endian order from this source and returns them as an int.
Read eight bytes in big-endian order from this source and returns them as a long.
Read four bytes from this source and returns a little-endian long.
Read eight bytes in little-endian order from this source and returns them as a long.
Read four bytes from this source and returns a little-endian long.
Read two bytes from this source and returns a big-endian short.
Read two bytes in big-endian order from this source and returns them as a short.
Read two bytes from this source and returns it as a little-endian short.
Read two bytes in little-endian order from this source and returns them as a short.
Read two bytes from this source and returns it as a little-endian short.
Reads all bytes from this source, decodes them as UTF-8, and returns the string.
Reads byteCount bytes from this source, decodes them as UTF-8, and returns the string.
Reads all bytes from this source, decodes them as UTF-8, and returns the string.
Reads byteCount bytes from this source, decodes them as UTF-8, and returns the string.
Returns when the buffer contains at least byteCount bytes or throws EOFException if the source is exhausted before the requested number of bytes could be read
Returns when the buffer contains at least byteCount bytes or throws EOFException if the source is exhausted before the requested number of bytes could be read
Returns when the buffer contains at least byteCount bytes or throws EOFException if the source is exhausted before the requested number of bytes could be read
Discards byteCount bytes from this source. Throws IOException if source is exhausted before byteCount bytes can be discarded.
Discards byteCount bytes from this source. Throws IOException if source is exhausted before byteCount bytes can be discarded.
Discards byteCount bytes from this source. Throws IOException if source is exhausted before byteCount bytes can be discarded.
Inherited functions
Returns a new source that buffers reads from the underlying source. The returned source will perform bulk reads to an in-memory buffer making small reads efficient.
Closes this source and releases any resources held. It is an error to read from a closed source. This is an idempotent operation.
Closes this source and releases any resources held. It is an error to read from a closed source. This is an idempotent operation.