Package tv.hd3g.processlauncher
Class CapturedStdOutErrTextRetention
java.lang.Object
tv.hd3g.processlauncher.CapturedStdOutErrText
tv.hd3g.processlauncher.CapturedStdOutErrTextRetention
-
Constructor Summary
ConstructorsConstructorDescriptionWith BOTH_STDOUT_STDERRCapturedStdOutErrTextRetention(CapturedStreams streamToKeep) -
Method Summary
Modifier and TypeMethodDescriptionOnly set if setKeepStdout is set (false by default), else return empty text.getStderrLines(boolean keepEmptyLines) Only set if setKeepStdout is set (false by default), else return empty stream.Only set if setKeepStdout is set (false by default), else return empty text.getStdouterr(boolean keepEmptyLines, String newLineSeparator) Only set if setKeepStdout is set (false by default), else return empty text.getStdouterrLines(boolean keepEmptyLines) Only set if setKeepStdout is set (false by default), else return empty stream.getStdoutLines(boolean keepEmptyLines) Only set if setKeepStdout is set (false by default), else return empty stream.Methods inherited from class tv.hd3g.processlauncher.CapturedStdOutErrText
isStreamsWatchIsStillAlive, waitForClosedStreams, waitForClosedStreams
-
Constructor Details
-
CapturedStdOutErrTextRetention
-
CapturedStdOutErrTextRetention
public CapturedStdOutErrTextRetention()With BOTH_STDOUT_STDERR
-
-
Method Details
-
getStdoutLines
Only set if setKeepStdout is set (false by default), else return empty stream. -
getStderrLines
Only set if setKeepStdout is set (false by default), else return empty stream.- Parameters:
keepEmptyLines- if set false, discard all empty trimed lines
-
getStdouterrLines
Only set if setKeepStdout is set (false by default), else return empty stream.- Parameters:
keepEmptyLines- if set false, discard all empty trimed lines
-
getStdout
Only set if setKeepStdout is set (false by default), else return empty text.- Parameters:
keepEmptyLines- if set false, discard all empty trimed linesnewLineSeparator- replace new line char by this Use System.lineSeparator() if needed
-
getStderr
Only set if setKeepStdout is set (false by default), else return empty text.- Parameters:
keepEmptyLines- if set false, discard all empty trimed linesnewLineSeparator- replace new line char by this Use System.lineSeparator() if needed
-
getStdouterr
Only set if setKeepStdout is set (false by default), else return empty text.- Parameters:
keepEmptyLines- if set false, discard all empty trimed linesnewLineSeparator- replace new line char by this Use System.lineSeparator() if needed
-