public class MessageWriter extends Writer
Writer
Note: Per WebSocket spec, all WebSocket TEXT messages must be encoded in UTF-8Constructor 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[] chars,
int off,
int len) |
void |
write(int c) |
public MessageWriter(WebSocketSession session)
public MessageWriter(OutgoingFrames outgoing, int bufferSize, ByteBufferPool bufferPool)
public void write(char[] chars, int off, int len) throws IOException
write
in class Writer
IOException
public void write(int c) throws IOException
write
in class Writer
IOException
public void flush() throws IOException
flush
in interface Flushable
flush
in class Writer
IOException
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
close
in class Writer
IOException
public void setCallback(WriteCallback callback)
Copyright © 1995-2015 Webtide. All Rights Reserved.