Class DefaultCommandExecutor
java.lang.Object
com.thebuzzmedia.exiftool.process.executor.DefaultCommandExecutor
- All Implemented Interfaces:
CommandExecutor
Default Executor.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionExecute command and build the result.execute
(Command command, OutputHandler handler) Execute command and build the result.Start command line and return associated process.
-
Constructor Details
-
DefaultCommandExecutor
public DefaultCommandExecutor()Create default executor.
-
-
Method Details
-
execute
Description copied from interface:CommandExecutor
Execute command and build the result. **NOTE:** Execution is synchronous.- Specified by:
execute
in interfaceCommandExecutor
- Parameters:
command
- Command input.- Returns:
- Result of execution.
- Throws:
IOException
- If an error occurred during execution.
-
execute
Description copied from interface:CommandExecutor
Execute command and build the result. **NOTE:** Execution is synchronous.- Specified by:
execute
in interfaceCommandExecutor
- Parameters:
command
- Command.handler
- Custom output handler.- Returns:
- Result of execution.
- Throws:
IOException
- If an error occurred during operation.
-
start
Description copied from interface:CommandExecutor
Start command line and return associated process. This process will be used to: - Read output. - Write arguments.- Specified by:
start
in interfaceCommandExecutor
- Parameters:
command
- Command.- Returns:
- Process.
- Throws:
IOException
- If an error occurred during operation.
-