Class MessageOutputStream
- java.lang.Object
-
- java.io.OutputStream
-
- org.eclipse.jetty.websocket.common.message.MessageOutputStream
-
- All Implemented Interfaces:
Closeable,Flushable,AutoCloseable
public class MessageOutputStream extends OutputStream
Support for writing a single WebSocket BINARY message via aOutputStream
-
-
Constructor Summary
Constructors Constructor Description MessageOutputStream(org.eclipse.jetty.websocket.api.extensions.OutgoingFrames outgoing, int bufferSize, org.eclipse.jetty.io.ByteBufferPool bufferPool)MessageOutputStream(WebSocketSession session)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()voidflush()voidsetCallback(org.eclipse.jetty.websocket.api.WriteCallback callback)voidwrite(byte[] bytes, int off, int len)voidwrite(int b)-
Methods inherited from class java.io.OutputStream
nullOutputStream, write
-
-
-
-
Constructor Detail
-
MessageOutputStream
public MessageOutputStream(WebSocketSession session)
-
MessageOutputStream
public MessageOutputStream(org.eclipse.jetty.websocket.api.extensions.OutgoingFrames outgoing, int bufferSize, org.eclipse.jetty.io.ByteBufferPool bufferPool)
-
-
Method Detail
-
write
public void write(byte[] bytes, int off, int len) throws IOException- Overrides:
writein classOutputStream- Throws:
IOException
-
write
public void write(int b) throws IOException- Specified by:
writein classOutputStream- Throws:
IOException
-
flush
public void flush() throws IOException- Specified by:
flushin interfaceFlushable- Overrides:
flushin classOutputStream- Throws:
IOException
-
close
public void close() throws IOException- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Overrides:
closein classOutputStream- Throws:
IOException
-
setCallback
public void setCallback(org.eclipse.jetty.websocket.api.WriteCallback callback)
-
-