Package org.silverpeas.core.util.exec
Class CollectingLogOutputStream
- java.lang.Object
-
- java.io.OutputStream
-
- org.apache.commons.exec.LogOutputStream
-
- org.silverpeas.core.util.exec.CollectingLogOutputStream
-
- All Implemented Interfaces:
Closeable
,Flushable
,AutoCloseable
public class CollectingLogOutputStream extends org.apache.commons.exec.LogOutputStream
Helper class to collectect the output of a command execution.
-
-
Constructor Summary
Constructors Constructor Description CollectingLogOutputStream()
CollectingLogOutputStream(List<String> lines)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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
nullOutputStream, write
-
-