public interface Sink extends Closeable, Flushable
BufferSink.outputStream() to adapt a sink to an OutputStream.| Modifier and Type | Method and Description |
|---|---|
void |
close() |
void |
flush() |
Timeout |
timeout() |
void |
write(Buffer source,
long byteCount) |
void flush()
throws IOException
flush in interface FlushableIOExceptionvoid close()
throws IOException
close in interface AutoCloseableclose in interface CloseableIOExceptionTimeout timeout()
void write(Buffer source, long byteCount) throws IOException
IOExceptionCopyright © 2019. All rights reserved.