Closes this source and releases the resources held by this source. It is
an error to read a closed source. It is safe to close a source more than
once.
Returns the index of element if it is found in the range of start inclusive to end
exclusive. If element isn't found, or if start == end, then -1 is returned.
Returns the index of the first match for bytes in the range of start inclusive to end
exclusive. This expands the buffer as necessary until bytes is found. This reads an unbounded number of
bytes into the buffer. Returns -1 if the stream is exhausted before the requested bytes are
found.
Returns a new BufferedSource that can read data from this BufferedSource without consuming
it. The returned source becomes invalid once this source is next read or closed.
Returns true if end - start bytes at offset in this source equal bytes at start.
This expands the buffer as necessary until a byte does not match, all bytes are matched, or if
the stream is exhausted before enough bytes could determine a match.
Removes and returns characters up to but not including the next line break. A line break is
either "\n" or "\r\n"; these characters are not included in the result.
Removes and returns characters up to but not including the next line break. A line break is
either "\n" or "\r\n"; these characters are not included in the result.
Returns true when the buffer contains at least count bytes, expanding it as
necessary. Returns false if the source is exhausted before the requested bytes can be read.