-
final class
A collection of bytes in memory.
Returns a new sink that buffers writes to sink.
Writes all buffered data to the underlying sink, if one exists.
Writes complete segments to the underlying sink, if one exists.
BufferedSink.write(byte[] source)
BufferedSink.write(byte[] source,
int offset,
int byteCount)
Removes byteCount bytes from source and appends them to this sink.
Writes a byte to this sink.
Writes a long to this sink in signed decimal form (i.e., as a string in base 10).
Writes a long to this sink in hexadecimal form (i.e., as a string in base 16).
Writes a big-endian int to this sink using four bytes.
Writes a little-endian int to this sink using four bytes.
Writes a big-endian long to this sink using eight bytes.
Writes a little-endian long to this sink using eight bytes.
Writes a big-endian short to this sink using two bytes.
Writes a little-endian short to this sink using two bytes.
Encodes the characters at beginIndex up to endIndex from string in
charset and writes it to this sink.
Encodes string in charset and writes it to this sink.
Encodes string in UTF-8 and writes it to this sink.
Encodes the characters at beginIndex up to endIndex from string in
UTF-8 and writes it to this sink.
Encodes codePoint in UTF-8 and writes it to this sink.