Class MessageWriter
java.lang.Object
java.io.Writer
org.eclipse.jetty.websocket.core.internal.messages.MessageWriter
- All Implemented Interfaces:
Closeable,Flushable,Appendable,AutoCloseable
Support for writing a single WebSocket TEXT message via a
Writer
Note: Per WebSocket spec, all WebSocket TEXT messages must be encoded in UTF-8
-
Field Summary
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()voidflush()voidsetCallback(Callback callback) voidwrite(char[] cbuf, int off, int len)
-
Constructor Details
-
MessageWriter
-
-
Method Details
-
write
- Specified by:
writein classWriter- Throws:
IOException
-
flush
- Specified by:
flushin interfaceFlushable- Specified by:
flushin classWriter- Throws:
IOException
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Specified by:
closein classWriter- Throws:
IOException
-
setCallback
-