Class OutFileTool

java.lang.Object
com.ibm.jvm.dtfjview.tools.Tool
com.ibm.jvm.dtfjview.tools.impl.OutFileTool
All Implemented Interfaces:
IPipe, ITool

public class OutFileTool extends Tool implements IPipe
Note, this class copied some logic from class com.ibm.java.diagnostics.utils.commands.CommandParser

  • Field Details

  • Constructor Details

    • OutFileTool

      public OutFileTool()
  • Method Details

    • accept

      public boolean accept(String command, String[] args)
      Determines if a command is accepted by current tool.

      Specified by:
      accept in interface ITool
      Parameters:
      command - The command
      args - The arguments taken by the command.

      Returns:
      true if this is the correct tool for this command; false otherwise.
    • process

      public void process(String command, String[] args, PrintStream redirector) throws CommandException
      Processes the command.

      Specified by:
      process in interface ITool
      Parameters:
      command - The command to be processed.
      args - The arguments taken by the command.
      redirector - The output channel.

      out - The output channel.

      Throws:
      CommandException
    • printDetailedHelp

      public void printDetailedHelp(PrintStream out)
      To print the detailed help message.
      Specified by:
      printDetailedHelp in interface ITool
    • getCommandName

      public String getCommandName()
      To gets the tool's command name.

      Specified by:
      getCommandName in interface ITool
      Returns:
      The tool's command name.
    • getArgumentDescription

      public String getArgumentDescription()
      To gets the tool's argument description.

      Specified by:
      getArgumentDescription in interface ITool
      Returns:
      The tool's argument description.
    • getHelpDescription

      public String getHelpDescription()
      To gets the tool's help description.

      Specified by:
      getHelpDescription in interface ITool
      Returns:
      The tool's help description.