public static class SocketMessageStreamWriter.BufferedStream extends Object implements SocketMessageStreamWriter.Out
Constructor and Description |
---|
BufferedStream(ByteArrayBuffer buffer,
ClosableOutputStream closable) |
Modifier and Type | Method and Description |
---|---|
boolean |
close() |
void |
flush() |
ByteArrayBuffer |
getBuffer() |
void |
write(int byteToWrite) |
void |
writeBytes(byte[] bytes) |
public BufferedStream(ByteArrayBuffer buffer, ClosableOutputStream closable) throws IOException
IOException
public ByteArrayBuffer getBuffer()
getBuffer
in interface SocketMessageStreamWriter.Out
public void flush() throws IOException
flush
in interface SocketMessageStreamWriter.Out
IOException
public void write(int byteToWrite) throws IOException
write
in interface SocketMessageStreamWriter.Out
IOException
public void writeBytes(byte[] bytes) throws IOException
writeBytes
in interface SocketMessageStreamWriter.Out
IOException
public boolean close()
close
in interface SocketMessageStreamWriter.Out
Copyright © 2016. All Rights Reserved.