Uses of Class
com.norconex.commons.lang.SystemUtil.Captured
Packages that use SystemUtil.Captured
-
Uses of SystemUtil.Captured in com.norconex.commons.lang
Methods in com.norconex.commons.lang that return SystemUtil.CapturedModifier and TypeMethodDescriptionstatic <T> SystemUtil.Captured<T> SystemUtil.callAndCaptureOutput(Callable<T> callable) Executes aCallableand return its value along with any standard output or error (i.e., STDOUT/STDERR).static SystemUtil.Captured<Void> SystemUtil.runAndCaptureOutput(Runnable runnable) Executes aRunnableand return any standard output or error (i.e., STDOUT/STDERR).static <T> SystemUtil.Captured<T> SystemUtil.withOutputCapture(Callable<T> callable) Same asSystemUtil.callAndCaptureOutput(Callable)but with no thread-safety guarantee.