Methods Summary |
---|
public java.io.OutputStream | bindStream(java.io.OutputStream output)Bind the specified stream to the current thread.
OutputStream stream = getStream();
m_streams.set( output );
return stream;
|
public void | close()Closes stream associated with current thread.
OutputStream output = getStream();
if( null != output )
{
output.close();
}
|
public void | flush()Flushes stream associated with current thread.
OutputStream output = getStream();
if( null != output )
{
output.flush();
}
|
private java.io.OutputStream | getStream()Utility method to retrieve stream bound to current thread (if any).
return (OutputStream)m_streams.get();
|
public void | write(int ch)Writes byte to stream associated with current thread.
OutputStream output = getStream();
if( null != output )
{
output.write( ch );
}
|