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.IOExceptionpublic WebSocketOutputStream(java.io.OutputStream os)
throws java.io.IOException
java.io.IOExceptionpublic void setAutoFlush(boolean isAutoFlush)
public void init()
public void write(int ch)
throws java.io.IOException
write in class java.io.OutputStreamjava.io.IOExceptionpublic void write(byte[] buffer,
int offset,
int length)
throws java.io.IOException
write in class java.io.OutputStreamjava.io.IOExceptionpublic void flush()
throws java.io.IOException
flush in interface java.io.Flushableflush in class java.io.OutputStreamjava.io.IOExceptionpublic void close()
throws java.io.IOException
close in interface java.io.Closeableclose in interface java.lang.AutoCloseableclose in class java.io.OutputStreamjava.io.IOExceptionpublic void destroy()
throws java.io.IOException
java.io.IOException