public class StandardProcessCloser extends Object implements ProcessCloser
ExecuteStreamHandler from pumping the streams and closes them.| Modifier and Type | Field and Description |
|---|---|
protected ExecuteStreamHandler |
streams |
| Constructor and Description |
|---|
StandardProcessCloser(ExecuteStreamHandler streams) |
| Modifier and Type | Method and Description |
|---|---|
void |
close(Process process)
Closes standard streams of a given sub process.
|
protected final ExecuteStreamHandler streams
public StandardProcessCloser(ExecuteStreamHandler streams)
public void close(Process process) throws IOException, InterruptedException
ProcessCloserclose in interface ProcessCloserprocess - sub process (not null).IOException - if I/O errors occur while closing the underlying streamInterruptedException - if underlying throws a InterruptedExceptionCopyright © 2020 ZeroTurnaround. All rights reserved.