public class AnyProcess extends Process
| Modifier and Type | Method and Description |
|---|---|
void |
destroy() |
int |
exitValue() |
List<String> |
getCommand() |
String |
getCommandLine() |
protected String |
getCurrentPid() |
InputStream |
getErrorStream() |
Future<Integer> |
getFuture() |
InputStream |
getInputStream() |
OutputStream |
getOutputStream() |
long |
getPid() |
byte[] |
getRecordedStderr() |
String |
getRecordedStderrText() |
byte[] |
getRecordedStdout() |
String |
getRecordedStdoutText() |
File |
getWorkingDirectory() |
boolean |
isDestroyed() |
boolean |
isRunning() |
protected static boolean |
isWindows() |
static AnyProcessBuilder<? extends AnyProcess> |
newBuilder() |
protected void |
onDestroyed() |
protected void |
onTerminated() |
String |
toString() |
int |
waitFor() |
int |
waitForTime(long time,
TimeUnit unit) |
destroyForcibly, isAlive, waitForpublic final OutputStream getOutputStream()
getOutputStream in class Processpublic final InputStream getInputStream()
getInputStream in class Processpublic final InputStream getErrorStream()
getErrorStream in class Processpublic final int waitFor()
throws InterruptedException
waitFor in class ProcessInterruptedExceptionpublic final int waitForTime(long time,
TimeUnit unit)
throws InterruptedException,
TimeoutException
InterruptedExceptionTimeoutExceptionpublic final String getCommandLine()
public final File getWorkingDirectory()
public final long getPid()
public final boolean isRunning()
public final boolean isDestroyed()
public final byte[] getRecordedStdout()
throws IllegalThreadStateException
IllegalThreadStateExceptionpublic final byte[] getRecordedStderr()
throws IllegalThreadStateException
IllegalThreadStateExceptionpublic final String getRecordedStdoutText() throws IllegalThreadStateException
IllegalThreadStateExceptionpublic final String getRecordedStderrText() throws IllegalThreadStateException
IllegalThreadStateExceptionprotected void onTerminated()
protected void onDestroyed()
public static AnyProcessBuilder<? extends AnyProcess> newBuilder()
protected static boolean isWindows()
protected final String getCurrentPid()
Copyright © 2020. All rights reserved.