Provides a framework for rule based text scanning
and uses the framework to provide rule-driven default implementations of
IPresentationDamager, IPresentationRepairer and IDocumentPartitioner.
IPredicateRule.evaluate(
ICharacterScanner scanner,
boolean resume)
Evaluates the rule by examining the characters available from
the provided character scanner.
PatternRule.sequenceDetected(
ICharacterScanner scanner,
char[] sequence,
boolean eofAllowed)
Returns whether the next characters to be read by the character scanner
are an exact match with the given sequence.