org.objectweb.util.monolog.wrapper.common
Class OutputStreamSwitcher
OutputStream
org.objectweb.util.monolog.wrapper.common.OutputStreamSwitcher
public class OutputStreamSwitcher
extends OutputStream
This Outstream implementation permits to switch the outStream at any time.
It is interesting to switch between System.out and System.err dependeing on
the message level.
- S.Chassande-Barrioz
currentOut
protected OutputStream currentOut
OutputStreamSwitcher
public OutputStreamSwitcher()
OutputStreamSwitcher
public OutputStreamSwitcher(OutputStream defaultOut)
close
public void close()
throws IOException
flush
public void flush()
throws IOException
switchOutput
public void switchOutput(OutputStream newOut)
write
public void write(b[] )
throws IOException
write
public void write(b[] ,
int off,
int len)
throws IOException
write
public void write(int b)
throws IOException