|
||||||||||
| 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
public class MuxInputStream
Input stream to a specific channel.
| Field Summary | |
|---|---|
protected InputStream |
is
|
| 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 InputStream |
getInputStream()
Gets the raw input stream. |
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. |
protected String |
readUTF()
Reads a UTF-8 string. |
| 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 |
|---|
protected InputStream is
| Constructor Detail |
|---|
public MuxInputStream()
| Method Detail |
|---|
protected void init(MuxServer server,
int channel)
throws IOException
IOException
protected InputStream getInputStream()
throws IOException
IOExceptionpublic int getChannel()
public String getURL()
public int read()
throws IOException
read in class InputStreamIOException
public void close()
throws IOException
close in interface Closeableclose in class InputStreamIOException
protected void readTag(int tag)
throws IOException
IOException
protected String readUTF()
throws IOException
IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||