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
IOExceptionpublic ByteArrayBuffer getBuffer()
getBuffer in interface SocketMessageStreamWriter.Outpublic void flush()
throws IOException
flush in interface SocketMessageStreamWriter.OutIOExceptionpublic void write(int byteToWrite)
throws IOException
write in interface SocketMessageStreamWriter.OutIOExceptionpublic void writeBytes(byte[] bytes)
throws IOException
writeBytes in interface SocketMessageStreamWriter.OutIOExceptionpublic boolean close()
close in interface SocketMessageStreamWriter.OutCopyright © 2016. All Rights Reserved.