public class WebSocketOutputStream extends ByteArrayOutputStream
Adapter output stream for sending data to a websocket.
Data is actually sent to the web socket only when flush() is called.
buf, count
Constructor and Description |
---|
WebSocketOutputStream(org.eclipse.jetty.websocket.api.Session session,
int bufferSize) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
void |
flush() |
reset, size, toByteArray, toString, toString, toString, write, write, writeTo
write
public WebSocketOutputStream(org.eclipse.jetty.websocket.api.Session session, int bufferSize)
public void close()
close
in interface Closeable
close
in interface AutoCloseable
close
in class ByteArrayOutputStream
public void flush() throws IOException
flush
in interface Flushable
flush
in class OutputStream
IOException
Copyright © 2016 Sensia Software LLC. All rights reserved.