| java.lang.Object java.io.OutputStream com.caucho.hessian.mux.MuxOutputStream
MuxOutputStream | public class MuxOutputStream extends OutputStream (Code) | | Output stream to a specific channel.
|
Method Summary | |
public void | close() Complete writing to the stream, closing the channel. | public void | flush() Flush data to the output stream. | public 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. | public void | write(int ch) Writes a data byte to the output stream. | public void | write(byte[] buffer, int offset, int length) Writes data to the output stream. | public void | writeURL(String url) Writes a URL to the stream. | protected void | writeUTF(int code, String string) Writes a UTF-8 string. | public void | yield() Flush data to the output stream. |
MuxOutputStream | public MuxOutputStream()(Code) | | Null argument constructor.
|
close | public void close() throws IOException(Code) | | Complete writing to the stream, closing the channel.
|
getChannel | public int getChannel()(Code) | | Gets the channel of the connection.
|
getOutputStream | protected OutputStream getOutputStream() throws IOException(Code) | | Gets the raw output stream. Clients will normally not call
this.
|
init | protected void init(MuxServer server, int channel) throws IOException(Code) | | Initialize the multiplexor with input and output streams.
|
write | public void write(int ch) throws IOException(Code) | | Writes a data byte to the output stream.
|
write | public void write(byte[] buffer, int offset, int length) throws IOException(Code) | | Writes data to the output stream.
|
writeUTF | protected void writeUTF(int code, String string) throws IOException(Code) | | Writes a UTF-8 string.
Parameters: code - the HMUX code identifying the string Parameters: string - the string to write |
|
|