Class CommandLine

java.lang.Object
org.htmlcleaner.CommandLine

public class CommandLine extends Object

Command line usage class.

  • Field Details

  • Constructor Details

    • CommandLine

      public CommandLine()
  • Method Details

    • getSwitchArgument

      private static boolean getSwitchArgument(String[] args, String name)
      If the specified argument name exists without a value, return true. If it exists with a value, translate it as a boolean.
      Parameters:
      args - the command line arguments
      name - the switch name
      Returns:
      true, or false, depending on whether the switch has been specified
    • getArgValue

      private static String getArgValue(String[] args, String name, String defaultValue)
    • toBoolean

      private static boolean toBoolean(String s)
    • main

      public static void main(String[] args) throws IOException, XPatherException
      Throws:
      IOException
      XPatherException