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:
getOutputStreamin classProcess
-
getInputStream
- Specified by:
getInputStreamin classProcess
-
getErrorStream
- Specified by:
getErrorStreamin classProcess
-
waitFor
- Specified by:
waitForin classProcess- Throws:
InterruptedException
-
waitFor
- Overrides:
waitForin classProcess- Throws:
InterruptedException
-
exitValue
public int exitValue() -
destroy
public void destroy() -
destroyForcibly
- Overrides:
destroyForciblyin classProcess
-
isAlive
public boolean isAlive() -
result
-
close
public void close()- Specified by:
closein interfaceAutoCloseable
-