public class FramedBufferOutputStream extends OutputStream
| Constructor and Description |
|---|
FramedBufferOutputStream(WritableByteChannel out) |
FramedBufferOutputStream(WritableByteChannel out,
int maxBufferSize) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
void |
completeFrame()
Write the frame at the current state, and reset the buffer to be able to
generate a new frame.
|
void |
write(byte[] bytes) |
void |
write(byte[] var1,
int off,
int len) |
void |
write(int val) |
flushpublic FramedBufferOutputStream(WritableByteChannel out)
public FramedBufferOutputStream(WritableByteChannel out, int maxBufferSize)
public void write(int val)
throws IOException
write in class OutputStreamIOExceptionpublic void write(@Nonnull byte[] bytes) throws IOException
write in class OutputStreamIOExceptionpublic void write(@Nonnull byte[] var1, int off, int len) throws IOException
write in class OutputStreamIOExceptionpublic void completeFrame()
throws IOException
IOException - On failed write.public void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in class OutputStreamIOExceptionCopyright © 2015–2018 morimekta.net. All rights reserved.