java.io.Closeable, java.io.Flushable, java.lang.AutoCloseablepublic final class BinaryOutputStream
extends java.io.OutputStream
OutputStream implementation which buffers all the data until close() is called and then will
try to send it in a blocking fashion with the provided StreamSinkFrameChannel.| Constructor | Description |
|---|---|
BinaryOutputStream(StreamSinkFrameChannel sender) |
| Modifier and Type | Method | Description |
|---|---|---|
void |
close() |
|
void |
flush() |
|
void |
write(byte[] b,
int off,
int len) |
|
void |
write(int b) |
public BinaryOutputStream(StreamSinkFrameChannel sender)
public void write(byte[] b,
int off,
int len)
throws java.io.IOException
write in class java.io.OutputStreamjava.io.IOExceptionpublic void write(int b)
throws java.io.IOException
write in class java.io.OutputStreamjava.io.IOExceptionpublic void flush()
throws java.io.IOException
flush in interface java.io.Flushableflush in class java.io.OutputStreamjava.io.IOExceptionpublic void close()
throws java.io.IOException
close in interface java.lang.AutoCloseableclose in interface java.io.Closeableclose in class java.io.OutputStreamjava.io.IOExceptionCopyright © 2018. All rights reserved.