org.apache.commons.io.input
Class DemuxInputStream
InputStream
org.apache.commons.io.input.DemuxInputStream
public class DemuxInputStream
extends InputStream
Data written to this stream is forwarded to a stream that has been associated
with this thread.
$Revision: 1.5 $ $Date: 2004/02/23 04:38:52 $
InputStream | bindStream(InputStream input) - Bind the specified stream to the current thread.
|
void | close() - Closes stream associated with current thread.
|
private InputStream | getStream() - Utility method to retrieve stream bound to current thread (if any).
|
int | read() - Read byte from stream associated with current thread.
|
m_streams
private InheritableThreadLocal m_streams
bindStream
public InputStream bindStream(InputStream input)
Bind the specified stream to the current thread.
input
- the stream to bind
- the InputStream that was previously active
close
public void close()
throws IOException
Closes stream associated with current thread.
getStream
private InputStream getStream()
Utility method to retrieve stream bound to current thread (if any).
read
public int read()
throws IOException
Read byte from stream associated with current thread.
- the byte read from stream