Package org.zeroturnaround.exec.close
Interface ProcessCloser
- All Known Implementing Classes:
StandardProcessCloser
,TimeoutProcessCloser
public interface ProcessCloser
Abstraction for closing sub process' streams.
-
Method Summary
-
Method Details
-
close
Closes standard streams of a given sub process.- Parameters:
process
- sub process (notnull
).- Throws:
IOException
- if I/O errors occur while closing the underlying streamInterruptedException
- if underlying throws a InterruptedException
-