Package com.diffplug.spotless
Class ProcessRunner.LongRunningProcess
java.lang.Object
java.lang.Process
com.diffplug.spotless.ProcessRunner.LongRunningProcess
- All Implemented Interfaces:
AutoCloseable
- Enclosing class:
ProcessRunner
A long-running process that can be waited for.
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.lang.Process
children, descendants, errorReader, errorReader, info, inputReader, inputReader, onExit, outputWriter, outputWriter, pid, supportsNormalTermination, toHandle
-
Constructor Details
-
LongRunningProcess
-
-
Method Details
-
getOutputStream
- Specified by:
getOutputStream
in classProcess
-
getInputStream
- Specified by:
getInputStream
in classProcess
-
getErrorStream
- Specified by:
getErrorStream
in classProcess
-
waitFor
- Specified by:
waitFor
in classProcess
- Throws:
InterruptedException
-
waitFor
- Overrides:
waitFor
in classProcess
- Throws:
InterruptedException
-
exitValue
public int exitValue() -
destroy
public void destroy() -
destroyForcibly
- Overrides:
destroyForcibly
in classProcess
-
isAlive
public boolean isAlive() -
result
-
close
public void close()- Specified by:
close
in interfaceAutoCloseable
-