java.io.Closeable, java.lang.AutoCloseablepublic class DemuxInputStream
extends java.io.InputStream
| Modifier and Type | Field | Description |
|---|---|---|
private java.lang.InheritableThreadLocal<java.io.InputStream> |
m_streams |
| Constructor | Description |
|---|---|
DemuxInputStream() |
| Modifier and Type | Method | Description |
|---|---|---|
java.io.InputStream |
bindStream(java.io.InputStream input) |
Bind the specified stream to the current thread.
|
void |
close() |
Closes stream associated with current thread.
|
int |
read() |
Read byte from stream associated with current thread.
|
private final java.lang.InheritableThreadLocal<java.io.InputStream> m_streams
public java.io.InputStream bindStream(java.io.InputStream input)
input - the stream to bindpublic void close()
throws java.io.IOException
close in interface java.lang.AutoCloseableclose in interface java.io.Closeableclose in class java.io.InputStreamjava.io.IOException - if an error occurspublic int read()
throws java.io.IOException
read in class java.io.InputStreamjava.io.IOException - if an error occursCopyright (c) 2002-2017 Apache Software Foundation