InterceptedStreams
The intercepted process output and error streams which can be read to capture inadvertent writes.
Functions
Read up to count bytes into buffer at offset from the intercepted error stream. The number of bytes read will be returned. 0 will be returned if interruptErrorRead is called while waiting for data.
Read up to count bytes into buffer at offset from the intercepted error stream. The number of bytes read will be returned. 0 will be returned if interruptErrorRead is called while waiting for data, or if at least timeoutMillis have passed without data.
Read up to count bytes into buffer at offset from the intercepted output stream. The number of bytes read will be returned. 0 will be returned if interruptOutputRead is called while waiting for data.
Read up to count bytes into buffer at offset from the intercepted output stream. The number of bytes read will be returned. 0 will be returned if interruptOutputRead is called while waiting for data, or if at least timeoutMillis have passed without data.