public class MessageWriter extends Writer
Writer
Note: Per WebSocket spec, all WebSocket TEXT messages must be encoded in UTF-8
| Constructor and Description |
|---|
MessageWriter(OutgoingFrames outgoing,
int bufferSize,
ByteBufferPool bufferPool) |
MessageWriter(WebSocketSession session) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
void |
flush() |
void |
setCallback(WriteCallback callback) |
void |
write(char[] cbuf) |
void |
write(char[] cbuf,
int off,
int len) |
void |
write(int c) |
public MessageWriter(OutgoingFrames outgoing, int bufferSize, ByteBufferPool bufferPool)
public MessageWriter(WebSocketSession session)
public void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in class WriterIOExceptionpublic void flush()
throws IOException
flush in interface Flushableflush in class WriterIOExceptionpublic void setCallback(WriteCallback callback)
public void write(char[] cbuf)
throws IOException
write in class WriterIOExceptionpublic void write(char[] cbuf,
int off,
int len)
throws IOException
write in class WriterIOExceptionpublic void write(int c)
throws IOException
write in class WriterIOExceptionCopyright © 1995-2013 Mort Bay Consulting. All Rights Reserved.