org.xwiki.test.integration
Class XWikiLogOutputStream

java.lang.Object
  extended by java.io.OutputStream
      extended by org.apache.commons.exec.LogOutputStream
          extended by org.xwiki.test.integration.XWikiLogOutputStream
All Implemented Interfaces:
Closeable, Flushable

public class XWikiLogOutputStream
extends org.apache.commons.exec.LogOutputStream

Logs the stdout and stderr streams of an external process started using Commons Exec.

Since:
4.3.1
Version:
$Id: 8cee40d30b40eb4c81d0a5723ccccb36fe13266a $

Field Summary
static int STDERR
          Represents the stderr stream.
static int STDOUT
          Represents the stdout stream.
 
Constructor Summary
XWikiLogOutputStream(int level)
           
 
Method Summary
protected  void processLine(String line, int level)
           
 
Methods inherited from class org.apache.commons.exec.LogOutputStream
close, flush, getMessageLevel, processBuffer, processLine, write, write
 
Methods inherited from class java.io.OutputStream
write
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

STDOUT

public static final int STDOUT
Represents the stdout stream.

See Also:
Constant Field Values

STDERR

public static final int STDERR
Represents the stderr stream.

See Also:
Constant Field Values
Constructor Detail

XWikiLogOutputStream

public XWikiLogOutputStream(int level)
Parameters:
level - the level under which to log (if the actual level is less than this value it'll get logged)
Method Detail

processLine

protected void processLine(String line,
                           int level)
Specified by:
processLine in class org.apache.commons.exec.LogOutputStream


Copyright © 2004-2013 XWiki. All Rights Reserved.