java.lang.Object
com.ibm.jvm.dtfjview.tools.Tool
com.ibm.jvm.dtfjview.tools.impl.OutFileTool
Note, this class copied some logic from class com.ibm.java.diagnostics.utils.commands.CommandParser
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanDetermines if a command is accepted by current tool.To gets the tool's argument description.To gets the tool's command name.To gets the tool's help description.voidTo print the detailed help message.voidprocess(String command, String[] args, PrintStream redirector) Processes the command.
-
Field Details
-
COMMAND_OVERWRITE
- See Also:
-
COMMAND_APPEND
- See Also:
-
ARGUMENT_DESCRIPTION
- See Also:
-
HELP_DESCRIPTION
- See Also:
-
USAGE
- See Also:
-
-
Constructor Details
-
OutFileTool
public OutFileTool()
-
-
Method Details
-
accept
Determines if a command is accepted by current tool. -
process
Processes the command.- Specified by:
processin interfaceITool- Parameters:
command- The command to be processed.args- The arguments taken by the command.out- The output channel.- Throws:
CommandException
-
printDetailedHelp
To print the detailed help message.- Specified by:
printDetailedHelpin interfaceITool
-
getCommandName
To gets the tool's command name.- Specified by:
getCommandNamein interfaceITool- Returns:
- The tool's command name.
-
getArgumentDescription
To gets the tool's argument description.- Specified by:
getArgumentDescriptionin interfaceITool- Returns:
- The tool's argument description.
-
getHelpDescription
To gets the tool's help description.- Specified by:
getHelpDescriptionin interfaceITool- Returns:
- The tool's help description.
-