public class WisitOutputStream extends OutputStream
| Modifier and Type | Field and Description |
|---|---|
private Object |
lock |
private OutputType |
myType |
private org.wisdom.api.http.websockets.Publisher |
publisher |
private String |
topic |
private static String |
UTF8 |
| Constructor and Description |
|---|
WisitOutputStream(org.wisdom.api.http.websockets.Publisher publisher,
String topic) |
WisitOutputStream(org.wisdom.api.http.websockets.Publisher publisher,
String topic,
OutputType outputType) |
| Modifier and Type | Method and Description |
|---|---|
OutputType |
getType() |
private void |
publish(String buffer)
Use the Publisher in order to broadcast the command result through the web-socket.
|
void |
write(byte[] b) |
void |
write(byte[] buf,
int off,
int len) |
void |
write(int i) |
close, flushprivate final org.wisdom.api.http.websockets.Publisher publisher
private final String topic
private final OutputType myType
private final Object lock
private static final String UTF8
public WisitOutputStream(org.wisdom.api.http.websockets.Publisher publisher,
String topic)
public WisitOutputStream(org.wisdom.api.http.websockets.Publisher publisher,
String topic,
OutputType outputType)
public void write(int i)
throws IOException
write in class OutputStreamIOExceptionpublic void write(byte[] b)
throws IOException
write in class OutputStreamIOExceptionpublic void write(byte[] buf,
int off,
int len)
write in class OutputStreampublic OutputType getType()
private void publish(String buffer)
buffer - the buffer in which data is writtenCopyright © 2013–2015 Wisdom Framework. All rights reserved.