org.silverpeas.viewer.util
Class CollectingLogOutputStream
java.lang.Object
java.io.OutputStream
org.apache.commons.exec.LogOutputStream
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.
Methods inherited from class org.apache.commons.exec.LogOutputStream |
close, flush, getMessageLevel, processBuffer, processLine, write, write |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CollectingLogOutputStream
public CollectingLogOutputStream()
CollectingLogOutputStream
public CollectingLogOutputStream(List<String> lines)
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.