Class ProcessBuilderCallable.ProcessWrapper
java.lang.Object
de.uplanet.lucy.server.auxiliaries.ProcessBuilderCallable.ProcessWrapper
- Enclosing class:
- ProcessBuilderCallable
Note: this class is not thread-safe.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
environmentAdd
(Map<String, String> p_env) int
boolean
isError()
boolean
boolean
void
setEnvironment
(Map<String, String> p_env) void
setOutputStream
(OutputStream p_out) void
setOutputStream
(Writer p_writer) void
setRedirectErrorStream
(boolean p_bRedirectErrorStream) void
setStreamEncoding
(String p_strStreamEncoding) void
setWorkingDirectory
(String p_strDir) void
start()
void
void
void
waitFor()
-
Method Details
-
getCommand
-
getCommandStr
-
getWorkingDirectory
-
setWorkingDirectory
-
getEnvironment
-
setEnvironment
-
environmentAdd
-
getExitCode
public int getExitCode() -
isSuccess
public boolean isSuccess() -
isError
public boolean isError() -
getStreamEncoding
-
setStreamEncoding
-
isRedirectErrorStream
public boolean isRedirectErrorStream() -
setRedirectErrorStream
public void setRedirectErrorStream(boolean p_bRedirectErrorStream) -
getStdOut
- Throws:
UnsupportedEncodingException
-
getInputStream
- See Also:
-
getErrorStream
- See Also:
-
setOutputStream
-
setOutputStream
-
start
- Throws:
IOException
-
startAndReadStdOut
- Throws:
IOException
-
startAndWaitFor
- Throws:
IOException
InterruptedException
-
waitFor
- Throws:
InterruptedException
-