Methods Summary |
---|
private java.lang.String | getCommandName()
return (operands.size() > 0
? (String) getOperands().get(0)
: DEFAULT_HELP_PAGE);
|
private java.io.Writer | getDestination()
return new OutputStreamWriter(System.out);
|
private int | getPageLength()
if ((getOption("isMultiMode")!=null &&
getBooleanOption("isMultiMode")) &&
(getOption("interactive")!=null &&
getBooleanOption("interactive")) )
return DEFAULT_PAGE_LENGTH;
else
return NO_PAGE_LENGTH;
|
private java.lang.String | getPrompt()
return getLocalizedString("ManpagePrompt");
|
private java.lang.String | getQuitChar()
return getLocalizedString("ManpageQuit");
|
private java.io.Reader | getSource()
CLIManFileFinder c = new CLIManFileFinder();
return c.getCommandManFile(getCommandName());
|
private java.io.Reader | getUserInput()
return new InputStreamReader(System.in);
|
private java.io.Writer | getUserOutput()
return new OutputStreamWriter(System.err);
|
public void | runCommand()Executes the command
try {
new More(getPageLength(),
getSource(),
getDestination(),
getUserInput(),
getUserOutput(),
getQuitChar(),
getPrompt());
}
catch (IOException ioe){
throw new CommandException(ioe);
}
|
public boolean | validateOptions()override abstract method validateOptions()
return true;
|