Class CmdFileTool
java.lang.Object
com.ibm.jvm.dtfjview.tools.Tool
com.ibm.jvm.dtfjview.tools.impl.CmdFileTool
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Determines if a command is accepted by the current tool.To gets the tool's argument description.To gets the tool's command name.To gets the tool's help description.parseCmdFile
(File cmdFile, String charset) To parse a command file.void
To print the detailed help message.void
process
(String command, String[] args, PrintStream out) Processes the command.
-
Field Details
-
AS_COMMENT_INDICATORS
-
COMMAND
- See Also:
-
ARGUMENT_DESCRIPTION
- See Also:
-
HELP_DESCRIPTION
- See Also:
-
USAGE
- See Also:
-
-
Constructor Details
-
CmdFileTool
-
-
Method Details
-
parseCmdFile
public static List<String> parseCmdFile(File cmdFile, String charset) throws UnsupportedEncodingException, IOException To parse a command file.- Parameters:
cmdFile
- The command file.charset
- If not null, the charset is used to decode the strings in the file.- Returns:
- The list of commands.
- Throws:
UnsupportedEncodingException
IOException
-
accept
-
process
Processes the command.- Parameters:
command
- The command to be processed.args
- The arguments taken by the command.out
- The output channel.- Throws:
CommandException
-
getCommandName
-
getArgumentDescription
To gets the tool's argument description.- Returns:
- The tool's argument description.
-
getHelpDescription
To gets the tool's help description.- Returns:
- The tool's help description.
-
printDetailedHelp
To print the detailed help message.
-