com.simonstl.gorille
Class CharTester
java.lang.Object
|
+--com.simonstl.gorille.CharTester
- public class CharTester
- extends java.lang.Object
This class tests TestCharRules
.
It takes two arguments - a rules file and a target file.
It loads the rules and feeds them to the filter
so that testers can see the results on the command line.
Version 0.03 adds a test for character classes created by CharRulesGen
as well as command-line options for creating them.
Version 0.02 adds a fixed test for characters beyond plane 0. It should only work when characters >10000 are permissible.
Version 0.01 is based on the FilterTester class from the com.simonstl.fragment package.
- Version:
- 0.03 18 January 2002
- Author:
- Simon St.Laurent
Method Summary |
static void |
main(java.lang.String[] args)
FilterTester's main method requires two arguments - a rules file and a target XML file. |
static void |
printHelp()
printHelp() lists options if the user doesn't specify any files. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CharTester
public CharTester()
printHelp
public static void printHelp()
- printHelp() lists options if the user doesn't specify any files.
main
public static void main(java.lang.String[] args)
throws java.lang.Exception
- FilterTester's main method requires two arguments - a rules file and a target XML file. A rules file may also be specified.
Options may appear before those arguments:
-p [parser class name] - specifies a SAX2 parser for use with this tool
-r - parse and display the rules only
-s - try the SAX filter on the document