Package org.zeroturnaround.exec.close
Interface ProcessCloser
-
- All Known Implementing Classes:
StandardProcessCloser
,TimeoutProcessCloser
public interface ProcessCloser
Abstraction for closing sub process' streams.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
close(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.InterruptedException
Closes 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
-
-