org.zeroturnaround.exec.close
Class StandardProcessCloser

java.lang.Object
  extended by 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.


Field Summary
protected  ExecuteStreamHandler streams
           
 
Constructor Summary
StandardProcessCloser(ExecuteStreamHandler streams)
           
 
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
 

Field Detail

streams

protected final ExecuteStreamHandler streams
Constructor Detail

StandardProcessCloser

public StandardProcessCloser(ExecuteStreamHandler streams)
Method Detail

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.