public final class RealSink extends Object implements BufferSink
public RealSink(Sink sink)
public Buffer buffer()
buffer in interface BufferSinkpublic void write(Buffer source, long byteCount) throws IOException
write in interface SinkIOExceptionpublic BufferSink write(ByteString byteString) throws IOException
write in interface BufferSinkIOExceptionpublic BufferSink writeUtf8(String string) throws IOException
writeUtf8 in interface BufferSinkIOExceptionpublic BufferSink writeUtf8(String string, int beginIndex, int endIndex) throws IOException
writeUtf8 in interface BufferSinkIOExceptionpublic BufferSink writeUtf8CodePoint(int codePoint) throws IOException
writeUtf8CodePoint in interface BufferSinkIOExceptionpublic BufferSink writeString(String string, Charset charset) throws IOException
writeString in interface BufferSinkIOExceptionpublic BufferSink writeString(String string, int beginIndex, int endIndex, Charset charset) throws IOException
writeString in interface BufferSinkIOExceptionpublic BufferSink write(byte[] source) throws IOException
write in interface BufferSinkIOExceptionpublic BufferSink write(byte[] source, int offset, int byteCount) throws IOException
write in interface BufferSinkIOExceptionpublic int write(ByteBuffer source) throws IOException
write in interface WritableByteChannelIOExceptionpublic long writeAll(Source source) throws IOException
writeAll in interface BufferSinkIOExceptionpublic BufferSink write(Source source, long byteCount) throws IOException
write in interface BufferSinkIOExceptionpublic BufferSink writeByte(int b) throws IOException
writeByte in interface BufferSinkIOExceptionpublic BufferSink writeShort(int s) throws IOException
writeShort in interface BufferSinkIOExceptionpublic BufferSink writeShortLe(int s) throws IOException
writeShortLe in interface BufferSinkIOExceptionpublic BufferSink writeInt(int i) throws IOException
writeInt in interface BufferSinkIOExceptionpublic BufferSink writeIntLe(int i) throws IOException
writeIntLe in interface BufferSinkIOExceptionpublic BufferSink writeLong(long v) throws IOException
writeLong in interface BufferSinkIOExceptionpublic BufferSink writeLongLe(long v) throws IOException
writeLongLe in interface BufferSinkIOExceptionpublic BufferSink writeDecimalLong(long v) throws IOException
writeDecimalLong in interface BufferSinkIOExceptionpublic BufferSink writeHexadecimalUnsignedLong(long v) throws IOException
writeHexadecimalUnsignedLong in interface BufferSinkIOExceptionpublic BufferSink emitCompleteSegments() throws IOException
emitCompleteSegments in interface BufferSinkIOExceptionpublic BufferSink emit() throws IOException
emit in interface BufferSinkIOExceptionpublic OutputStream outputStream()
outputStream in interface BufferSinkpublic void flush()
throws IOException
flush in interface Flushableflush in interface BufferSinkflush in interface SinkIOExceptionpublic void close()
Copyright © 2020. All rights reserved.