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