Package org.zeroturnaround.exec.close
Interface ProcessCloser
-
- All Known Implementing Classes:
StandardProcessCloser,TimeoutProcessCloser
public interface ProcessCloserAbstraction for closing sub process' streams.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidclose(java.lang.Process process)Closes standard streams of a given sub process.
-
-
-
Method Detail
-
close
void close(java.lang.Process process) throws java.io.IOException, java.lang.InterruptedExceptionCloses standard streams of a given sub process.- Parameters:
process- sub process (notnull).- Throws:
java.io.IOException- if I/O errors occur while closing the underlying streamjava.lang.InterruptedException- if underlying throws a InterruptedException
-
-