public interface BufferSink extends Sink, WritableByteChannel
| Modifier and Type | Method and Description |
|---|---|
Buffer |
buffer() |
BufferSink |
emit() |
BufferSink |
emitCompleteSegments() |
void |
flush() |
OutputStream |
outputStream() |
BufferSink |
write(byte[] source) |
BufferSink |
write(byte[] source,
int offset,
int byteCount) |
BufferSink |
write(ByteString byteString) |
BufferSink |
write(Source source,
long byteCount) |
long |
writeAll(Source source) |
BufferSink |
writeByte(int b) |
BufferSink |
writeDecimalLong(long v) |
BufferSink |
writeHexadecimalUnsignedLong(long v) |
BufferSink |
writeInt(int i) |
BufferSink |
writeIntLe(int i) |
BufferSink |
writeLong(long v) |
BufferSink |
writeLongLe(long v) |
BufferSink |
writeShort(int s) |
BufferSink |
writeShortLe(int s) |
BufferSink |
writeString(String string,
Charset charset) |
BufferSink |
writeString(String string,
int beginIndex,
int endIndex,
Charset charset) |
BufferSink |
writeUtf8(String string) |
BufferSink |
writeUtf8(String string,
int beginIndex,
int endIndex) |
BufferSink |
writeUtf8CodePoint(int codePoint) |
writeBuffer buffer()
BufferSink write(ByteString byteString) throws IOException
IOExceptionBufferSink write(byte[] source) throws IOException
IOExceptionBufferSink write(byte[] source, int offset, int byteCount) throws IOException
IOExceptionlong writeAll(Source source) throws IOException
IOExceptionBufferSink write(Source source, long byteCount) throws IOException
IOExceptionBufferSink writeUtf8(String string) throws IOException
IOExceptionBufferSink writeUtf8(String string, int beginIndex, int endIndex) throws IOException
IOExceptionBufferSink writeUtf8CodePoint(int codePoint) throws IOException
IOExceptionBufferSink writeString(String string, Charset charset) throws IOException
IOExceptionBufferSink writeString(String string, int beginIndex, int endIndex, Charset charset) throws IOException
IOExceptionBufferSink writeByte(int b) throws IOException
IOExceptionBufferSink writeShort(int s) throws IOException
IOExceptionBufferSink writeShortLe(int s) throws IOException
IOExceptionBufferSink writeInt(int i) throws IOException
IOExceptionBufferSink writeIntLe(int i) throws IOException
IOExceptionBufferSink writeLong(long v) throws IOException
IOExceptionBufferSink writeLongLe(long v) throws IOException
IOExceptionBufferSink writeDecimalLong(long v) throws IOException
IOExceptionBufferSink writeHexadecimalUnsignedLong(long v) throws IOException
IOExceptionvoid flush()
throws IOException
flush in interface Flushableflush in interface SinkIOExceptionBufferSink emit() throws IOException
IOExceptionBufferSink emitCompleteSegments() throws IOException
IOExceptionOutputStream outputStream()
Copyright © 2019. All rights reserved.