public class CloseableProcess extends Process implements AutoCloseable
| Constructor and Description |
|---|
CloseableProcess(Process process) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
void |
destroy() |
Process |
destroyForcibly() |
int |
exitValue() |
InputStream |
getErrorStream() |
InputStream |
getInputStream() |
OutputStream |
getOutputStream() |
Process |
getWrapped() |
boolean |
isAlive() |
int |
waitFor() |
boolean |
waitFor(long timeout,
TimeUnit unit) |
public CloseableProcess(Process process)
public Process getWrapped()
public InputStream getInputStream()
getInputStream in class Processpublic OutputStream getOutputStream()
getOutputStream in class Processpublic InputStream getErrorStream()
getErrorStream in class Processpublic int waitFor()
throws InterruptedException
waitFor in class ProcessInterruptedExceptionpublic boolean waitFor(long timeout,
TimeUnit unit)
throws InterruptedException
waitFor in class ProcessInterruptedExceptionpublic void close()
close in interface AutoCloseablepublic Process destroyForcibly()
destroyForcibly in class ProcessCopyright © 2019. All rights reserved.