/** * Bind the specified stream to the current thread. * * @param output the stream to bind * @return the OutputStream that was previously active */ public OutputStream bindStream( OutputStream output ) { OutputStream stream = getStream(); m_streams.set( output ); return stream; }
/** * Flushes stream associated with current thread. * * @throws IOException if an error occurs */ public void flush() throws IOException { OutputStream output = getStream(); if( null != output ) { output.flush(); } }
/** * Closes stream associated with current thread. * * @throws IOException if an error occurs */ public void close() throws IOException { OutputStream output = getStream(); if( null != output ) { output.close(); } }
/** * Writes byte to stream associated with current thread. * * @param ch the byte to write to stream * @throws IOException if an error occurs */ public void write( int ch ) throws IOException { OutputStream output = getStream(); if( null != output ) { output.write( ch ); } }
/** * Bind the specified stream to the current thread. * * @param output the stream to bind * @return the OutputStream that was previously active */ public OutputStream bindStream( OutputStream output ) { OutputStream stream = getStream(); m_streams.set( output ); return stream; }
/** * Bind the specified stream to the current thread. * * @param output the stream to bind * @return the OutputStream that was previously active */ public OutputStream bindStream( OutputStream output ) { OutputStream stream = getStream(); m_streams.set( output ); return stream; }
/** * Closes stream associated with current thread. * * @throws IOException if an error occurs */ public void close() throws IOException { OutputStream output = getStream(); if( null != output ) { output.close(); } }
/** * Flushes stream associated with current thread. * * @throws IOException if an error occurs */ public void flush() throws IOException { OutputStream output = getStream(); if( null != output ) { output.flush(); } }
/** * Closes stream associated with current thread. * * @throws IOException if an error occurs */ public void close() throws IOException { OutputStream output = getStream(); if( null != output ) { output.close(); } }
/** * Flushes stream associated with current thread. * * @throws IOException if an error occurs */ public void flush() throws IOException { OutputStream output = getStream(); if( null != output ) { output.flush(); } }
/** * Writes byte to stream associated with current thread. * * @param ch the byte to write to stream * @throws IOException if an error occurs */ public void write( int ch ) throws IOException { OutputStream output = getStream(); if( null != output ) { output.write( ch ); } }
/** * Writes byte to stream associated with current thread. * * @param ch the byte to write to stream * @throws IOException if an error occurs */ public void write( int ch ) throws IOException { OutputStream output = getStream(); if( null != output ) { output.write( ch ); } }