|
||||||||||
| 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
public class MuxOutputStream
Output stream to a specific channel.
| 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 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. |
| 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 |
| Constructor Detail |
|---|
public MuxOutputStream()
| Method Detail |
|---|
protected void init(MuxServer server,
int channel)
throws IOException
IOException
protected OutputStream getOutputStream()
throws IOException
IOExceptionpublic int getChannel()
public void writeURL(String url)
throws IOException
IOException
public void write(int ch)
throws IOException
write in class OutputStreamIOException
public void write(byte[] buffer,
int offset,
int length)
throws IOException
write in class OutputStreamIOException
public void yield()
throws IOException
IOException
public void flush()
throws IOException
flush in interface Flushableflush in class OutputStreamIOException
public void close()
throws IOException
close in interface Closeableclose in class OutputStreamIOException
protected void writeUTF(int code,
String string)
throws IOException
code - the HMUX code identifying the stringstring - the string to write
IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||