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) |
flush
public FramedBufferOutputStream(WritableByteChannel out)
public FramedBufferOutputStream(WritableByteChannel out, int maxBufferSize)
public void write(int val) throws IOException
write
in class OutputStream
IOException
public void write(@Nonnull byte[] bytes) throws IOException
write
in class OutputStream
IOException
public void write(@Nonnull byte[] var1, int off, int len) throws IOException
write
in class OutputStream
IOException
public void completeFrame() throws IOException
IOException
- On failed write.public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
close
in class OutputStream
IOException
Copyright © 2015–2018 morimekta.net. All rights reserved.