org.silverpeas.viewer.util
Class CollectingLogOutputStream

java.lang.Object
  extended by java.io.OutputStream
      extended by org.apache.commons.exec.LogOutputStream
          extended by org.silverpeas.viewer.util.CollectingLogOutputStream
All Implemented Interfaces:
Closeable, Flushable

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

Helper class to collectect the output of a command execution.


Constructor Summary
CollectingLogOutputStream()
           
CollectingLogOutputStream(List<String> lines)
           
 
Method Summary
 List<String> getLines()
           
 String getMessage()
           
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
 

Constructor Detail

CollectingLogOutputStream

public CollectingLogOutputStream()

CollectingLogOutputStream

public CollectingLogOutputStream(List<String> lines)
Method Detail

processLine

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

getLines

public List<String> getLines()

getMessage

public String getMessage()


Copyright © 2016 Silverpeas. All Rights Reserved.