Class MessageOutputStream
java.lang.Object
java.io.OutputStream
org.eclipse.jetty.websocket.core.internal.messages.MessageOutputStream
- All Implemented Interfaces:
Closeable
,Flushable
,AutoCloseable
Support for writing a single WebSocket BINARY message via a
OutputStream
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
void
flush()
void
setCallback
(Callback callback) void
write
(byte[] bytes, int off, int len) void
write
(int b) void
write
(ByteBuffer buffer) Methods inherited from class java.io.OutputStream
nullOutputStream, write
-
Constructor Details
-
MessageOutputStream
-
-
Method Details
-
write
- Overrides:
write
in classOutputStream
- Throws:
IOException
-
write
- Specified by:
write
in classOutputStream
- Throws:
IOException
-
write
- Throws:
IOException
-
flush
- Specified by:
flush
in interfaceFlushable
- Overrides:
flush
in classOutputStream
- Throws:
IOException
-
close
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Overrides:
close
in classOutputStream
- Throws:
IOException
-
setCallback
-