java.io.Closeable
, java.lang.AutoCloseable
public 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.AutoCloseable
close
in interface java.io.Closeable
close
in class java.io.InputStream
java.io.IOException
- if an error occurspublic int read() throws java.io.IOException
read
in class java.io.InputStream
java.io.IOException
- if an error occursCopyright (c) 2002-2017 Apache Software Foundation