|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.io.InputStream
com.caucho.hessian.mux.MuxInputStream
Input stream to a specific channel.
Field Summary | |
private int |
channel
|
private int |
chunkLength
|
protected java.io.InputStream |
is
|
private MuxServer |
server
|
private java.lang.String |
url
|
Fields inherited from class java.io.InputStream |
|
Constructor Summary | |
MuxInputStream()
Null argument constructor. |
Method Summary | |
void |
close()
Complete writing to the stream, closing the channel. |
int |
getChannel()
Gets the channel of the connection. |
protected java.io.InputStream |
getInputStream()
Gets the raw input stream. |
java.lang.String |
getURL()
Returns the request's URL |
protected void |
init(MuxServer server,
int channel)
Initialize the multiplexor with input and output streams. |
int |
read()
Writes a data byte to the output stream. |
protected void |
readTag(int tag)
Subclasses will extend this to read values. |
(package private) void |
readToData(boolean returnOnYield)
Reads tags, until getting data. |
protected java.lang.String |
readUTF()
Reads a UTF-8 string. |
(package private) void |
setInputStream(java.io.InputStream is)
|
private void |
skipToEnd()
Skips data until the end of the channel. |
Methods inherited from class java.io.InputStream |
available, mark, markSupported, read, read, reset, skip |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private MuxServer server
protected java.io.InputStream is
private int channel
private java.lang.String url
private int chunkLength
Constructor Detail |
public MuxInputStream()
Method Detail |
protected void init(MuxServer server, int channel) throws java.io.IOException
java.io.IOException
protected java.io.InputStream getInputStream() throws java.io.IOException
java.io.IOException
void setInputStream(java.io.InputStream is)
public int getChannel()
public java.lang.String getURL()
public int read() throws java.io.IOException
java.io.IOException
public void close() throws java.io.IOException
java.io.IOException
private void skipToEnd() throws java.io.IOException
java.io.IOException
void readToData(boolean returnOnYield) throws java.io.IOException
java.io.IOException
protected void readTag(int tag) throws java.io.IOException
java.io.IOException
protected java.lang.String readUTF() throws java.io.IOException
java.io.IOException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |