Package org.pfsw.text

Text and String Utility Classes
Contains classes for string and string array manipulation as well as rule parsers and simple string pattern matching functionality.

See:
          Description

Interface Summary
MatchRuleVisitor Implementers of this interface can be used with MatchRule.apply() to navigate through the parsed rule tree and execute specific tasks on the elements.
StringGenerator Defines the common API for classes that are supposed to generate strings.
 

Class Summary
AStringFilter Subclasses of this abstract string filter class usually must override only method matches(String).
BaseMatchRuleParser Abstract superclass for parsers that produce a MatchRule from any specific syntax.
ByteSizeValue Represents a number-of-bytes value and provides parsing of strings and various different getters for various byte size units.
CheckedCharsetName This is a helper class that represents a character encoding name that has already been checked if it is supported by the platform.
CollatorComparator A wrapper around a collator which allows to use it as a Comparator rather than a Comparator.
CommandLineArguments Utility class for easy evaluation of command line arguments.
DefaultMatchRuleParser This parser translates the match-rule syntax to a MatchRule object.
DefaultStringConverter<T> Default string converter for any object.
FormattedTextWriter This is a wrapper on an Appendable object.
LdapFilterParser An instance of this class can be used to parse an LDAP filter string to a MatchRule.
LdapMatchRuleVisitor Walks over a MatchRule to create a LDAP filter string out of it.
MatchAttribute An instance of this class holds the name and the pattern values for one attribute.
MatchElement Implements all common state and behavior of elements in a match rule.
MatchGroup Represents a group of MatchAttributes and/or MatchGroups
MatchRule The purpose of class MatchRule is to provide an easy-to-use component, that checks a dictionary (i.e.
MatchRuleChars Contains the set of special characters for MatchRules.
MatchRulePrinter Converts a MatchRule to a String using the default syntax.
NaturalNumber A natural number is an abstraction of the two types Integer and Long.
NegativeStringFilter A simple filter that negates the result of its inner string filter.
ObjectIdGenerator Generates numeric IDs that are left padded with zeros.
RandomStringGenerator A string generator that produces a new random string for each invocation.
RegexPattern A regular expression pattern that can be used multiple times to be matched against strings.
ReverseComparator<T> Provides a comparator implementation that is a wrapper around another comparator with the purpose to reverse the compare order of the given objects.
SqlMatchRuleVisitor Walks over a MatchRule to create a SQL WHERE clause out of it.
StringCollectionFilter This filter is based on a collection of strings.
StringExaminer As a subclass of StringScanner this class allows more advanced navigation over the underlying string.
StringFilterCollection A collection of IStringFilter objects that can be matched against strings according to a defined boolean operator (AND | OR | XOR).
StringPair A simple pair of strings.
StringPattern This class provides services for checking strings against string-patterns.
StringPatternCollection Holds a collection of StringPattern objects and allows to check if a given string matches any or none of the patterns.
StringScanner Simple scanner that allows to navigate over the characters of a string.
StringUtil The sole instance of this class provides several convenience methods for string manipulation such as substring replacement or character repetition.
TextFileReader Convenience class for reading text files.
TextFileWriter Convenience class for writing text files.
TimeValue Represents a time value and provides parsing of strings and various different getters for various time units.
UncheckedTextFileWriter Convenience class for writing text files with throwing IORuntimeException rather than IOException in its methods that extend Writer functionality.
Version This class provides a representation of version identifiers of pattern "x.y.z" in a way that they can be compared and sorted according to their real meaning and not just by simple string comparison.
 

Enum Summary
ByteSizeUnit This enum provides several memory size units with an associated factor that is useful to calculate the number of bytes from a value given in a different memory size unit.
MatchRuleCompareOperator Supported operators in match rules.
NewLine Provides new line character sequences for the various operating systems.
TimeUnit This enum provides several time units with an associated factor useful to calculate the milliseconds from a time value given in a different time unit.
 

Exception Summary
MatchRuleException The base exception of all exceptions that can occur with match rules.
MatchRuleParseException This exception is used for all parsing errors of MatchRule parser classes.
 

Package org.pfsw.text Description

Text and String Utility Classes


Contains classes for string and string array manipulation as well as rule parsers and simple string pattern matching functionality.