# Interface ExecOutput.StandardStreamContent

Enclosing interface:
  `ExecOutput`

public static interface ExecOutput.StandardStreamContent
A handle to access content of the process' standard stream (the standard output of the standard error output).

Since:
  7.5

- ## Method Summary

  Modifier and Type
  Method
  Description
  `Provider<byte[]>`
  `getAsBytes()`
  Gets a provider for the standard stream's content that returns it as a byte array.
  `Provider<String>`
  `getAsText()`
  Gets a provider for the standard stream's content that returns it as a String.

- ## Method Details

  - ### getAsText

    Provider<String> getAsText()
    Gets a provider for the standard stream's content that returns it as a String. The output is decoded using the default encoding of the JVM running the build.

    The external process is executed only once and only when the value is requested for the first time.

    If starting the process results in exception then the ensuing exception is permanently propagated to callers of `Provider.get()`, `Provider.getOrElse(T)`, `Provider.getOrNull()` and `Provider.isPresent()`.

    Since:
      7.5

  - ### getAsBytes

    Provider<byte[]> getAsBytes()
    Gets a provider for the standard stream's content that returns it as a byte array.

    The external process is executed only once and only when the value is requested for the first time.

    If starting the process results in exception then the ensuing exception is permanently propagated to callers of `Provider.get()`, `Provider.getOrElse(T)`, `Provider.getOrNull()` and `Provider.isPresent()`.

    Since:
      7.5