public static class SocketMessageStreamWriter.BufferedStream extends java.lang.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 java.io.IOException
java.io.IOExceptionpublic ByteArrayBuffer getBuffer()
getBuffer in interface SocketMessageStreamWriter.Outpublic void flush()
throws java.io.IOException
flush in interface SocketMessageStreamWriter.Outjava.io.IOExceptionpublic void write(int byteToWrite)
throws java.io.IOException
write in interface SocketMessageStreamWriter.Outjava.io.IOExceptionpublic void writeBytes(byte[] bytes)
throws java.io.IOException
writeBytes in interface SocketMessageStreamWriter.Outjava.io.IOExceptionpublic boolean close()
close in interface SocketMessageStreamWriter.OutCopyright © 2018. All Rights Reserved.