@Incubating public static interface ExecOutput.StandardStreamContent
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<java.lang.String> |
getAsText() |
Gets a provider for the standard stream's content that returns it as a String.
|
Provider<java.lang.String> getAsText()
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()
.
Provider<byte[]> getAsBytes()
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()
.