public interface TestableProcess
TestableProcessFactory| Modifier and Type | Method and Description |
|---|---|
InputStream |
getErrorStream()
Gets the error stream of the subprocess.
|
InputStream |
getInputStream()
Gets the input stream of the subprocess.
|
OutputStream |
getOutputStream()
Gets the output stream of the subprocess.
|
int |
waitFor()
causes the current thread to wait, if necessary, until the
process represented by this
TestableProcess object has
terminated. |
InputStream getErrorStream()
TestableProcess object.
Implementation note: It is a good idea for the input stream to be buffered.
InputStream getInputStream()
TestableProcess object.
Implementation note: It is a good idea for the input stream to be buffered.
OutputStream getOutputStream()
TestableProcess object.
Implementation note: It is a good idea for the output stream to be buffered.
int waitFor()
throws InterruptedException
TestableProcess object has
terminated. This method returns
immediately if the subprocess has already terminated. If the
subprocess has not yet terminated, the calling thread will be
blocked until the subprocess exits.0 indicates normal termination.InterruptedException - if the current thread is
interrupted by another
thread while it is waiting, then the wait is ended and
an InterruptedException is thrown.Copyright © 2018. All rights reserved.