the command to launch and its arguments.
how much time to wait when performing a read.
the charset used for encoding and decoding the Strings.
how many bytes to read.
whether to redirect stdErr to stdOut.
how many bytes to read.
the charset used for encoding and decoding the Strings.
the command to launch and its arguments.
whether the current deadline has any time left.
If the underlying process is still alive it's destroy method is invoked and the input and output streams are closed.
Writes to the underlying OutputStream
the bytes obtained from decoding text
using charset
.
Writes to the underlying OutputStream
the bytes obtained from decoding text
using charset
.
Followed by a flush of the OutputStream
.
the text to write to the OutputStream
.
Tries to read bufferSize
bytes from the underlying InputStream
.
Tries to read bufferSize
bytes from the underlying InputStream
.
If no bytes are read within timeout
a TimeoutException
will be thrown.
If the end of file is reached an EOFException
is thrown.
Otherwise, a String encoded with charset
is created from the read bytes.
This method awaits for the result of a future, aka, is blocking.
the ExecutionContext
upon the internal Future
will run.
a String created from the read bytes encoded with charset
.
whether to redirect stdErr to stdOut.
Resets the underlying deadline used when performing a read
.
Resets the underlying deadline used when performing a read
.
The new deadline is timeout.fromNow
.
how much time to wait when performing a read.
Launches a
java.lang.Process
with methods to read and print from its stdout and stdin respectively.the command to launch and its arguments.
how much time to wait when performing a read.
the charset used for encoding and decoding the Strings.
how many bytes to read.
whether to redirect stdErr to stdOut.