|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.io.OutputStream
com.caucho.hessian.mux.MuxOutputStream
Output stream to a specific channel.
Field Summary | |
private int |
channel
|
private java.io.OutputStream |
os
|
private MuxServer |
server
|
Constructor Summary | |
MuxOutputStream()
Null argument constructor. |
Method Summary | |
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 java.io.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(java.lang.String url)
Writes a URL to the stream. |
protected void |
writeUTF(int code,
java.lang.String string)
Writes a UTF-8 string. |
void |
yield()
Flush data to the output stream. |
Methods inherited from class java.io.OutputStream |
write |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private MuxServer server
private int channel
private java.io.OutputStream os
Constructor Detail |
public MuxOutputStream()
Method Detail |
protected void init(MuxServer server, int channel) throws java.io.IOException
java.io.IOException
protected java.io.OutputStream getOutputStream() throws java.io.IOException
java.io.IOException
public int getChannel()
public void writeURL(java.lang.String url) throws java.io.IOException
java.io.IOException
public void write(int ch) throws java.io.IOException
java.io.IOException
public void write(byte[] buffer, int offset, int length) throws java.io.IOException
java.io.IOException
public void yield() throws java.io.IOException
java.io.IOException
public void flush() throws java.io.IOException
java.io.IOException
public void close() throws java.io.IOException
java.io.IOException
protected void writeUTF(int code, java.lang.String string) throws java.io.IOException
code
- the HMUX code identifying the stringstring
- the string to write
java.io.IOException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |