org.zeroturnaround.exec.close
Class StandardProcessCloser
java.lang.Object
org.zeroturnaround.exec.close.StandardProcessCloser
- All Implemented Interfaces:
- ProcessCloser
- Direct Known Subclasses:
- TimeoutProcessCloser
public class StandardProcessCloser
- extends Object
- implements ProcessCloser
Stops ExecuteStreamHandler from pumping the streams and closes them.
|
Method Summary |
void |
close(Process process)
Closes standard streams of a given sub process. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
streams
protected final ExecuteStreamHandler streams
StandardProcessCloser
public StandardProcessCloser(ExecuteStreamHandler streams)
close
public void close(Process process)
throws IOException,
InterruptedException
- Description copied from interface:
ProcessCloser
- Closes standard streams of a given sub process.
- Specified by:
close in interface ProcessCloser
- Parameters:
process - sub process (not null).
- Throws:
IOException
InterruptedException
Copyright © 2015 ZeroTurnaround. All rights reserved.