public class DemuxInputStream
extends java.io.InputStream
| Modifier and Type | Field and Description |
|---|---|
private java.lang.InheritableThreadLocal<java.io.InputStream> |
m_streams |
| Constructor and Description |
|---|
DemuxInputStream() |
| Modifier and Type | Method and 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.io.Closeableclose in interface java.lang.AutoCloseableclose 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-2016 Apache Software Foundation