public class WebSocketWriter extends java.io.Writer implements WebSocketConstants
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 |
|---|
WebSocketWriter(java.io.OutputStream os,
byte[] buffer) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
void |
destroy() |
void |
flush() |
void |
init() |
void |
write(char[] buffer,
int offset,
int length) |
void |
write(int ch) |
public WebSocketWriter(java.io.OutputStream os,
byte[] buffer)
throws java.io.IOException
java.io.IOExceptionpublic void init()
throws java.io.IOException
java.io.IOExceptionpublic void write(int ch)
write in class java.io.Writerpublic void write(char[] buffer,
int offset,
int length)
write in class java.io.Writerpublic void flush()
flush in interface java.io.Flushableflush in class java.io.Writerpublic void close()
close in interface java.io.Closeableclose in interface java.lang.AutoCloseableclose in class java.io.Writerpublic void destroy()
throws java.io.IOException
java.io.IOException