Methods Summary |
---|
public java.io.InputStream | bindStream(java.io.InputStream input)Bind the specified stream to the current thread.
InputStream oldValue = getStream();
m_streams.set( input );
return oldValue;
|
public void | close()Closes stream associated with current thread.
InputStream input = getStream();
if( null != input )
{
input.close();
}
|
private java.io.InputStream | getStream()Utility method to retrieve stream bound to current thread (if any).
return (InputStream)m_streams.get();
|
public int | read()Read byte from stream associated with current thread.
InputStream input = getStream();
if( null != input )
{
return input.read();
}
else
{
return -1;
}
|