public interface CommandExecutor
Modifier and Type | Method and Description |
---|---|
CommandResult |
execute(Command command)
Execute command and build the result.
|
CommandResult |
execute(Command command,
OutputHandler handler)
Execute command and build the result.
|
CommandProcess |
start(Command command)
Start command line and return associated process.
|
CommandResult execute(Command command) throws IOException
command
- Command input.IOException
CommandResult execute(Command command, OutputHandler handler) throws IOException
command
- Command.handler
- Custom output handler.IOException
- If an error occurred during operation.CommandProcess start(Command command) throws IOException
command
- Command.IOException
- If an error occurred during operation.Copyright © 2015. All Rights Reserved.