public class ShellCommand extends AbstractCommand
COMMAND_OPTION_DELIMETER, context
Constructor and Description |
---|
ShellCommand() |
ShellCommand(boolean interactive) |
Modifier and Type | Method and Description |
---|---|
boolean |
isInteractive() |
static int |
main(String[] args,
InputStream in,
PrintStream out)
Main method to run a command shell client.
|
protected void |
printHelp()
Print the help messages for the browse command
|
protected void |
runTask(List<String> tokens)
Parses for specific command task.
|
void |
setInteractive(boolean interactive) |
execute, handleOption, parseOptions, setCommandContext
public ShellCommand()
public ShellCommand(boolean interactive)
public static int main(String[] args, InputStream in, PrintStream out)
args
- - command line argumentsin
- - input stream to useout
- - output stream to usepublic boolean isInteractive()
public void setInteractive(boolean interactive)
protected void runTask(List<String> tokens) throws Exception
runTask
in class AbstractCommand
tokens
- - command argumentsException
protected void printHelp()
printHelp
in class AbstractCommand
Copyright © 2005–2015. All rights reserved.