public final class RealBufferedSink extends Object implements BufferedSink
| Constructor and Description |
|---|
RealBufferedSink(Sink sink) |
public RealBufferedSink(Sink sink)
public Buffer buffer()
buffer in interface BufferedSinkpublic void write(Buffer source, long byteCount) throws IOException
write in interface SinkIOExceptionpublic BufferedSink write(ByteString byteString) throws IOException
write in interface BufferedSinkIOExceptionpublic BufferedSink writeUtf8(String string) throws IOException
writeUtf8 in interface BufferedSinkIOExceptionpublic BufferedSink writeUtf8(String string, int beginIndex, int endIndex) throws IOException
writeUtf8 in interface BufferedSinkIOExceptionpublic BufferedSink writeUtf8CodePoint(int codePoint) throws IOException
writeUtf8CodePoint in interface BufferedSinkIOExceptionpublic BufferedSink writeString(String string, Charset charset) throws IOException
writeString in interface BufferedSinkIOExceptionpublic BufferedSink writeString(String string, int beginIndex, int endIndex, Charset charset) throws IOException
writeString in interface BufferedSinkIOExceptionpublic BufferedSink write(byte[] source) throws IOException
write in interface BufferedSinkIOExceptionpublic BufferedSink write(byte[] source, int offset, int byteCount) throws IOException
write in interface BufferedSinkIOExceptionpublic int write(ByteBuffer source) throws IOException
write in interface WritableByteChannelIOExceptionpublic long writeAll(Source source) throws IOException
writeAll in interface BufferedSinkIOExceptionpublic BufferedSink write(Source source, long byteCount) throws IOException
write in interface BufferedSinkIOExceptionpublic BufferedSink writeByte(int b) throws IOException
writeByte in interface BufferedSinkIOExceptionpublic BufferedSink writeShort(int s) throws IOException
writeShort in interface BufferedSinkIOExceptionpublic BufferedSink writeShortLe(int s) throws IOException
writeShortLe in interface BufferedSinkIOExceptionpublic BufferedSink writeInt(int i) throws IOException
writeInt in interface BufferedSinkIOExceptionpublic BufferedSink writeIntLe(int i) throws IOException
writeIntLe in interface BufferedSinkIOExceptionpublic BufferedSink writeLong(long v) throws IOException
writeLong in interface BufferedSinkIOExceptionpublic BufferedSink writeLongLe(long v) throws IOException
writeLongLe in interface BufferedSinkIOExceptionpublic BufferedSink writeDecimalLong(long v) throws IOException
writeDecimalLong in interface BufferedSinkIOExceptionpublic BufferedSink writeHexadecimalUnsignedLong(long v) throws IOException
writeHexadecimalUnsignedLong in interface BufferedSinkIOExceptionpublic BufferedSink emitCompleteSegments() throws IOException
emitCompleteSegments in interface BufferedSinkIOExceptionpublic BufferedSink emit() throws IOException
emit in interface BufferedSinkIOExceptionpublic OutputStream outputStream()
outputStream in interface BufferedSinkpublic void flush()
throws IOException
flush in interface Flushableflush in interface BufferedSinkflush in interface SinkIOExceptionpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in interface Channelclose in interface SinkIOExceptionCopyright © 2019. All rights reserved.