public class DefaultCommandExecutor extends Object implements CommandExecutor
Constructor and Description |
---|
DefaultCommandExecutor()
Create default executor.
|
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.
|
public CommandResult execute(Command command) throws IOException
CommandExecutor
execute
in interface CommandExecutor
command
- Command input.IOException
public CommandResult execute(Command command, OutputHandler handler) throws IOException
CommandExecutor
execute
in interface CommandExecutor
command
- Command.handler
- Custom output handler.IOException
- If an error occurred during operation.public CommandProcess start(Command command) throws IOException
CommandExecutor
start
in interface CommandExecutor
command
- Command.IOException
- If an error occurred during operation.Copyright © 2015. All Rights Reserved.