|
TV-Browser 3.3.3 API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object util.io.ExecutionHandler
public class ExecutionHandler
Handles the execution of external processes.
Constructor Summary | |
---|---|
ExecutionHandler(java.lang.String[] parameterWithProgramPath)
Creates an instance of this class. |
|
ExecutionHandler(java.lang.String[] parameterWithProgramPath,
java.io.File runtimeDirectory)
Creates an instance of this class. |
|
ExecutionHandler(java.lang.String[] parameterWithProgramPath,
java.lang.String runtimeDirectory)
Creates an instance of this class. |
|
ExecutionHandler(java.lang.String parameter,
java.lang.String programPath)
Creates an instance of this class. |
|
ExecutionHandler(java.lang.String parameter,
java.lang.String programPath,
java.io.File runtimeDirectory)
Creates an instance of this class. |
|
ExecutionHandler(java.lang.String parameter,
java.lang.String programPath,
java.lang.String runtimeDirectory)
Creates an instance of this class. |
Method Summary | |
---|---|
void |
execute()
Executes the given application with the given parameters in the given runtime directory. |
void |
execute(boolean logInputStream)
Executes the given application with the given parameters in the given runtime directory. |
void |
execute(boolean logInputStream,
boolean logErrorStream)
Executes the given application with the given parameters in the given runtime directory. |
void |
execute(boolean logInputStream,
boolean logErrorStream,
java.lang.String encoding)
Executes the given application with the given parameters in the given runtime directory. |
void |
execute(boolean logInputStream,
java.lang.String encoding)
Executes the given application with the given parameters in the given runtime directory. |
void |
execute(java.lang.String encoding)
Executes the given application with the given parameters in the given runtime directory. |
int |
exitValue()
The exit value of the process. |
java.lang.String |
getErrors()
Get error output of the execution handler after execution |
StreamReaderThread |
getErrorStreamReaderThread()
Gets the error stream reader thread. |
StreamReaderThread |
getInputStreamReaderThread()
Gets the input stream reader thread (it logs the console output of the process). |
java.lang.String |
getOutput()
get console output of the execution handler after execution |
java.lang.Process |
getProcess()
Gets the started process. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ExecutionHandler(java.lang.String parameter, java.lang.String programPath)
parameter
- The parameter to pass to the application.programPath
- The path to the application.public ExecutionHandler(java.lang.String parameter, java.lang.String programPath, java.lang.String runtimeDirectory)
parameter
- The parameter to parse to the application.programPath
- The path to the application.runtimeDirectory
- The runtime directory for the application.public ExecutionHandler(java.lang.String parameter, java.lang.String programPath, java.io.File runtimeDirectory)
parameter
- The parameter to parse to the application.programPath
- The path to the application.runtimeDirectory
- The runtime directory for the application.public ExecutionHandler(java.lang.String[] parameterWithProgramPath)
parameterWithProgramPath
- The parameter to parse to the application with the path to the program.public ExecutionHandler(java.lang.String[] parameterWithProgramPath, java.lang.String runtimeDirectory)
parameterWithProgramPath
- The parameter to parse to the application with the path to the program.runtimeDirectory
- The runtime directory for the application.public ExecutionHandler(java.lang.String[] parameterWithProgramPath, java.io.File runtimeDirectory)
parameterWithProgramPath
- The parameter to parse to the application with the path to the program.runtimeDirectory
- The runtime directory for the application.Method Detail |
---|
public void execute() throws java.io.IOException
java.io.IOException
- Thrown if something went wrong on process building.public void execute(java.lang.String encoding) throws java.io.IOException
encoding
- The encoding for the reading of the process console output.
java.io.IOException
- Thrown if something went wrong on process building.public void execute(boolean logInputStream) throws java.io.IOException
logInputStream
- True
means that the console output of the output stream
of the process will be logged and can be get after the process was stopped (it's output stream
is an input stream for the process starter).
java.io.IOException
- Thrown if something went wrong on process building.public void execute(boolean logInputStream, java.lang.String encoding) throws java.io.IOException
logInputStream
- True
means that the console output of the output stream
of the process will be logged and can be get after the process was stopped (it's output stream
is an input stream for the process starter).encoding
- The encoding for the reading of the process console output.
java.io.IOException
- Thrown if something went wrong on process building.public void execute(boolean logInputStream, boolean logErrorStream) throws java.io.IOException
logInputStream
- True
means that the console output of the output stream
of the process will be logged and can be get after the process was stopped (it's output stream
is an input stream for the process starter).logErrorStream
- True
means that the console output of the error stream
of the process will be logged and can be get after the process was stopped.
java.io.IOException
- Thrown if something went wrong on process building.public void execute(boolean logInputStream, boolean logErrorStream, java.lang.String encoding) throws java.io.IOException
logInputStream
- True
means that the console output of the output stream
of the process will be logged and can be get after the process was stopped (it's output stream
is an input stream for the process starter).logErrorStream
- True
means that the console output of the error stream
of the process will be logged and can be get after the process was stopped.encoding
- The encoding for the reading of the process console output.
java.io.IOException
- Thrown if something went wrong on process building.public java.lang.Process getProcess()
null
if the process wasn't started.public int exitValue() throws java.lang.IllegalThreadStateException
java.lang.IllegalThreadStateException
- Thrown if the process wasn't started or is not finished.public StreamReaderThread getInputStreamReaderThread()
public StreamReaderThread getErrorStreamReaderThread()
public java.lang.String getOutput()
public java.lang.String getErrors()
|
TV-Browser 3.3.3 API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |