# Uses of Class
com.norconex.commons.lang.SystemUtil.Captured

Packages that use SystemUtil.Captured
Package
Description
com.norconex.commons.lang
Miscellaneous classes.

- ## Uses of SystemUtil.Captured in com.norconex.commons.lang

  Methods in com.norconex.commons.lang that return SystemUtil.Captured
  Modifier and Type
  Method
  Description
  `static <T> SystemUtil.Captured<T>`
  SystemUtil.`callAndCaptureOutput(Callable<T> callable)`
  Executes a `Callable` and return its value along with any standard output or error (i.e., STDOUT/STDERR).
  `static SystemUtil.Captured<Void>`
  SystemUtil.`runAndCaptureOutput(Runnable runnable)`
  Executes a `Runnable` and return any standard output or error (i.e., STDOUT/STDERR).
  `static <T> SystemUtil.Captured<T>`
  SystemUtil.`withOutputCapture(Callable<T> callable)`
  Same as `SystemUtil.callAndCaptureOutput(Callable)` but with no thread-safety guarantee.