Package org.htmlcleaner
Class CommandLine
java.lang.Object
org.htmlcleaner.CommandLine
Command line usage class.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static String
getArgValue
(String[] args, String name, String defaultValue) private static boolean
getSwitchArgument
(String[] args, String name) If the specified argument name exists without a value, return true.static void
private static boolean
-
Field Details
-
OMITXMLDECL
- See Also:
-
className
-
logger
-
-
Constructor Details
-
CommandLine
public CommandLine()
-
-
Method Details
-
getSwitchArgument
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 argumentsname
- the switch name- Returns:
- true, or false, depending on whether the switch has been specified
-
getArgValue
-
toBoolean
-
main
- Throws:
IOException
XPatherException
-