Class ProcessBuilder2
java.lang.Object
net.thevpc.common.io.ProcessBuilder2
/ .setErr(System.err)
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfacestatic class -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddCommand(String... command) addCommand(List<String> command) getEnv()getErr()getIn()getOut()getProc()intintbooleanbooleanbooleanbooleanredirectError(File source) redirectInput(File source) redirectInput(ProcessBuilder.Redirect source) redirectOutput(File source) setCommand(String... command) setCommand(List<String> command) setDirectory(File directory) setErr(PrintStream err) setFailFast(boolean failFast) setIn(InputStream in) setOutput(PrintStream out) setRedirectErrorStream(boolean redirectErrorStream) setSleepMillis(int sleepMillis) start()waitFor()
-
Constructor Details
-
ProcessBuilder2
public ProcessBuilder2()
-
-
Method Details
-
getSleepMillis
public int getSleepMillis() -
setSleepMillis
-
getProc
-
getCommand
-
addCommand
-
addCommand
-
setCommand
-
setCommand
-
getEnv
-
addEnv
-
setEnv
-
setEnv
-
getDirectory
-
setDirectory
-
getIn
-
setIn
-
getOut
-
grabOutputString
-
grabErrorString
-
getOutputString
-
getErrorString
-
setOutput
-
getErr
-
setErr
-
start
- Throws:
IOException
-
waitFor
- Throws:
IOException
-
isGrabOutputString
public boolean isGrabOutputString() -
isGrabErrorString
public boolean isGrabErrorString() -
getResult
public int getResult() -
getProcess
-
inheritIO
-
redirectInput
-
redirectOutput
-
redirectInput
-
redirectOutput
-
redirectError
-
getRedirectInput
-
getRedirectOutput
-
getRedirectError
-
isRedirectErrorStream
public boolean isRedirectErrorStream() -
redirectErrorStream
-
setRedirectErrorStream
-
getCommandString
-
getCommandString
-
isFailFast
public boolean isFailFast() -
setFailFast
-
setFailFast
-