public class WebSocketOutputStream extends java.io.OutputStream implements WebSocketConstants
0x82 0xNN binarydata
CLOSE_ERROR, CLOSE_MESSAGE_TOO_BIG, CLOSE_OK, CLOSE_UTF8, FLAG_FIN, FLAG_MASK, MASK_OPCODE, OP_BINARY, OP_CLOSE, OP_CONT, OP_PING, OP_PONG, OP_TEXT, VERSION
Constructor and Description |
---|
WebSocketOutputStream(java.io.OutputStream os) |
WebSocketOutputStream(java.io.OutputStream os,
byte[] workingBuffer) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
void |
destroy() |
void |
flush() |
void |
init() |
void |
setAutoFlush(boolean isAutoFlush) |
void |
write(byte[] buffer,
int offset,
int length) |
void |
write(int ch) |
public WebSocketOutputStream(java.io.OutputStream os, byte[] workingBuffer) throws java.io.IOException
java.io.IOException
public WebSocketOutputStream(java.io.OutputStream os) throws java.io.IOException
java.io.IOException
public void setAutoFlush(boolean isAutoFlush)
public void init()
public void write(int ch) throws java.io.IOException
write
in class java.io.OutputStream
java.io.IOException
public void write(byte[] buffer, int offset, int length) throws java.io.IOException
write
in class java.io.OutputStream
java.io.IOException
public void flush() throws java.io.IOException
flush
in interface java.io.Flushable
flush
in class java.io.OutputStream
java.io.IOException
public void close() throws java.io.IOException
close
in interface java.io.Closeable
close
in interface java.lang.AutoCloseable
close
in class java.io.OutputStream
java.io.IOException
public void destroy() throws java.io.IOException
java.io.IOException