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.IOException
public void init() throws java.io.IOException
java.io.IOException
public void write(int ch)
write
in class java.io.Writer
public void write(char[] buffer, int offset, int length)
write
in class java.io.Writer
public void flush()
flush
in interface java.io.Flushable
flush
in class java.io.Writer
public void close()
close
in interface java.io.Closeable
close
in interface java.lang.AutoCloseable
close
in class java.io.Writer
public void destroy() throws java.io.IOException
java.io.IOException