public class MuxInputStream extends InputStream
| Modifier and Type | Field and Description |
|---|---|
protected InputStream |
is |
| Constructor and Description |
|---|
MuxInputStream()
Null argument constructor.
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
available, mark, markSupported, read, read, reset, skipprotected InputStream is
protected void init(MuxServer server, int channel) throws IOException
IOExceptionprotected InputStream getInputStream() throws IOException
IOExceptionpublic int getChannel()
public String getURL()
public int read()
throws IOException
read in class InputStreamIOExceptionpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in class InputStreamIOExceptionprotected void readTag(int tag)
throws IOException
IOExceptionprotected String readUTF() throws IOException
IOExceptionCopyright © 2017 Caucho Technology, Inc. All rights reserved.