- java.lang.Object
-
- com.ibm.jvm.dtfjview.tools.Tool
-
- com.ibm.jvm.dtfjview.tools.impl.OutFileTool
-
-
Field Summary
Fields Modifier and Type Field Description static String
ARGUMENT_DESCRIPTION
static String
COMMAND_APPEND
static String
COMMAND_OVERWRITE
static String
HELP_DESCRIPTION
static String
USAGE
-
Constructor Summary
Constructors Constructor Description OutFileTool()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
accept(String command, String[] args)
Determines if a command is accepted by current tool.String
getArgumentDescription()
To gets the tool's argument description.String
getCommandName()
To gets the tool's command name.String
getHelpDescription()
To gets the tool's help description.void
printDetailedHelp(PrintStream out)
To print the detailed help message.void
process(String command, String[] args, PrintStream redirector)
Processes the command.
-
-
-
Field Detail
-
COMMAND_OVERWRITE
public static final String COMMAND_OVERWRITE
- See Also:
- Constant Field Values
-
COMMAND_APPEND
public static final String COMMAND_APPEND
- See Also:
- Constant Field Values
-
ARGUMENT_DESCRIPTION
public static final String ARGUMENT_DESCRIPTION
- See Also:
- Constant Field Values
-
HELP_DESCRIPTION
public static final String HELP_DESCRIPTION
- See Also:
- Constant Field Values
-
USAGE
public static final String USAGE
- See Also:
- Constant Field Values
-
-
Method Detail
-
accept
public boolean accept(String command, String[] args)
Determines if a command is accepted by current tool.
-
process
public void process(String command, String[] args, PrintStream redirector) throws CommandException
Processes the command.- Specified by:
process
in interfaceITool
- Parameters:
command
- The command to be processed.args
- The arguments taken by the command.out
- The output channel.- Throws:
CommandException
-
printDetailedHelp
public void printDetailedHelp(PrintStream out)
To print the detailed help message.- Specified by:
printDetailedHelp
in interfaceITool
-
getCommandName
public String getCommandName()
To gets the tool's command name.- Specified by:
getCommandName
in interfaceITool
- Returns:
- The tool's command name.
-
getArgumentDescription
public String getArgumentDescription()
To gets the tool's argument description.- Specified by:
getArgumentDescription
in interfaceITool
- Returns:
- The tool's argument description.
-
getHelpDescription
public String getHelpDescription()
To gets the tool's help description.- Specified by:
getHelpDescription
in interfaceITool
- Returns:
- The tool's help description.
-
-