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, skip
protected InputStream is
protected void init(MuxServer server, int channel) throws IOException
IOException
protected InputStream getInputStream() throws IOException
IOException
public int getChannel()
public String getURL()
public int read() throws IOException
read
in class InputStream
IOException
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
close
in class InputStream
IOException
protected void readTag(int tag) throws IOException
IOException
protected String readUTF() throws IOException
IOException
Copyright © 2023. All rights reserved.