org.apache.oro.text |
This package used to be the TextTools library and provides general
text processing support, including a glob regular expression class,
pattern caching and line-by-line processing classes.
|
Java Source File Name | Type | Comment |
DefaultMatchAction.java | Class | DefaultMatchAction is a support class for MatchActionProcessor,
providing a default match action. |
GenericPatternCache.java | Class | This is the base class for all cache implementations provided in the
org.apache.oro.text package. |
GlobCompiler.java | Class | The GlobCompiler class will compile a glob expression into a Perl5Pattern
that may be used to match patterns in conjunction with Perl5Matcher.
Rather than create extra GlobMatcher and GlobPattern classes tailored
to the task of matching glob expressions, we have simply reused the
Perl5 regular expression classes from org.apache.oro.text.regex by
making GlobCompiler translate a glob expression into a Perl5 expression
that is compiled by a Perl5Compiler instance internal to the GlobCompiler.
Because there are various similar glob expression syntaxes, GlobCompiler
tries to provide a small amount of customization by providing the
GlobCompiler.STAR_CANNOT_MATCH_NULL_MASK and
GlobCompiler.QUESTION_MATCHES_ZERO_OR_ONE_MASK compilation options.
The GlobCompiler expression syntax is based on Unix shell glob expressions
but should be usable to simulate Win32 wildcards. |
MalformedCachePatternException.java | Class | An exception used to indicate errors in a regular expression fetched
from a PatternCache.
It is derived from RuntimeException, and therefore does not have to be
caught. |
MatchAction.java | Interface | The MatchAction interface provides the callback interface for actions
bound to patterns in
MatchActionProcessor . |
MatchActionInfo.java | Class | This class is used to provide information regarding a match found by
MatchActionProcessor to a MatchAction callback implementation. |
MatchActionProcessor.java | Class | The MatchActionProcessor class provides AWK-like line by line filtering
of a text stream, pattern action pair association, and field splitting
based on a registered separator. |
PatternCache.java | Interface | An interface defining the basic functions of a regular expression
cache.
A PatternCache is an object that takes care of compiling, storing, and
retrieving regular expressions so that the programmer does not have to
explicitly manage these operation himself. |
PatternCacheFIFO.java | Class | This class is a GenericPatternCache subclass implementing a FIFO (First
In First Out) cache replacement policy. |
PatternCacheFIFO2.java | Class | This class is a GenericPatternCache subclass implementing a second
chance FIFO (First In First Out) cache replacement policy. |
PatternCacheLRU.java | Class | This class is a GenericPatternCache subclass implementing an LRU
(Least Recently Used) cache replacement policy. |
PatternCacheRandom.java | Class | This class is a GenericPatternCache subclass implementing a random
cache replacement policy. |