org.xmlBlaster.util.log
Class StdoutStderrOutputstream
java.lang.Object
java.io.OutputStream
java.io.ByteArrayOutputStream
org.xmlBlaster.util.log.StdoutStderrOutputstream
- All Implemented Interfaces:
- java.io.Closeable, java.io.Flushable
public class StdoutStderrOutputstream
- extends java.io.ByteArrayOutputStream
| Fields inherited from class java.io.ByteArrayOutputStream |
buf, count |
|
Method Summary |
void |
flush()
on flush write the contents of the OutputStream to the logger |
| Methods inherited from class java.io.ByteArrayOutputStream |
close, reset, size, toByteArray, toString, toString, toString, write, write, writeTo |
| Methods inherited from class java.io.OutputStream |
write |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
redirector
private StdoutStderrRedirector redirector
lineSeparator
private java.lang.String lineSeparator
logger
private java.util.logging.Logger logger
level
private java.util.logging.Level level
StdoutStderrOutputstream
public StdoutStderrOutputstream(StdoutStderrRedirector redirector,
java.util.logging.Logger logger,
java.util.logging.Level level)
- Parameters:
logger - The logger to write tolevel - The level at which to write
flush
public void flush()
- on flush write the contents of the OutputStream to the logger
- Specified by:
flush in interface java.io.Flushable- Overrides:
flush in class java.io.OutputStream
Copyright © 1999-2014 The xmlBlaster.org contributers.