public class MuxOutputStream extends OutputStream
| Constructor and Description |
|---|
MuxOutputStream()
Null argument constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Complete writing to the stream, closing the channel.
|
void |
flush()
Flush data to the output stream.
|
int |
getChannel()
Gets the channel of the connection.
|
protected OutputStream |
getOutputStream()
Gets the raw output stream.
|
protected void |
init(MuxServer server,
int channel)
Initialize the multiplexor with input and output streams.
|
void |
write(byte[] buffer,
int offset,
int length)
Writes data to the output stream.
|
void |
write(int ch)
Writes a data byte to the output stream.
|
void |
writeURL(String url)
Writes a URL to the stream.
|
protected void |
writeUTF(int code,
String string)
Writes a UTF-8 string.
|
void |
yield()
Flush data to the output stream.
|
writeprotected void init(MuxServer server, int channel) throws IOException
IOExceptionprotected OutputStream getOutputStream() throws IOException
IOExceptionpublic int getChannel()
public void writeURL(String url) throws IOException
IOExceptionpublic void write(int ch)
throws IOException
write in class OutputStreamIOExceptionpublic void write(byte[] buffer,
int offset,
int length)
throws IOException
write in class OutputStreamIOExceptionpublic void yield()
throws IOException
IOExceptionpublic void flush()
throws IOException
flush in interface Flushableflush in class OutputStreamIOExceptionpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in class OutputStreamIOExceptionprotected void writeUTF(int code,
String string)
throws IOException
code - the HMUX code identifying the stringstring - the string to writeIOExceptionCopyright © 2017 Caucho Technology, Inc. All rights reserved.