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.IOException
public ByteArrayBuffer getBuffer()
getBuffer
in interface SocketMessageStreamWriter.Out
public void flush() throws java.io.IOException
flush
in interface SocketMessageStreamWriter.Out
java.io.IOException
public void write(int byteToWrite) throws java.io.IOException
write
in interface SocketMessageStreamWriter.Out
java.io.IOException
public void writeBytes(byte[] bytes) throws java.io.IOException
writeBytes
in interface SocketMessageStreamWriter.Out
java.io.IOException
public boolean close()
close
in interface SocketMessageStreamWriter.Out
Copyright © 2019. All Rights Reserved.