Top Description Interfaces Classes Enums
[default module]

Package org.apache.commons.text


Basic classes for text handling.

Since
1.0

Interface Summary

Modifier and TypeInterface and Description
public interface
Builder<
the type of object that the builder will construct or compute.
T
>

Deprecated Use Supplier.
Duplicates the functionality of Supplier.
public interface
CharacterPredicate

A predicate for selecting code points.

public interface
FormatFactory

Format factory.

public interface
TextRandomProvider

TextRandomProvider implementations are used by RandomStringGenerator as a source of randomness.

Class Summary

Modifier and TypeClass and Description
public class
AlphabetConverter

Convert from one alphabet to another, with the possibility of leaving certain characters unencoded.

public class
CaseUtils

Case manipulation operations on Strings that contain words.

public class
CompositeFormat

Formats using one formatter and parses using a different formatter.

public class
ExtendedMessageFormat

Extends java.text.MessageFormat to allow pluggable/additional formatting options for embedded format elements.

public class
FormattableUtils

Provides utilities for working with the Formattable interface.

public class
RandomStringGenerator

Generates random Unicode strings containing the specified number of code points.

public class
StrBuilder

Deprecated Deprecated as of 1.3, use TextStringBuilder instead. This class will be removed in 2.0.
Builds a string from constituent parts providing a more flexible and powerful API than StringBuffer and StringBuilder.
public class
StringEscapeUtils

Escapes and unescapes Strings for Java, Java Script, HTML and XML.

public class
StringSubstitutor

Substitutes variables within a string by values.

public class
StringTokenizer

Tokenizes a string based on delimiters (separators) and supporting quoting and ignored character concepts.

public abstract class
StrLookup<
the type of the values supported by the lookup
V
>

Deprecated Deprecated as of 1.3, use StringLookupFactory instead. This class will be removed in 2.0.
Lookup a String key to a String value.
public abstract class
StrMatcher

Deprecated Deprecated as of 1.3, use StringMatcherFactory instead. This class will be removed in 2.0.
A matcher class that can be queried to determine if a character array portion matches.
public class
StrSubstitutor

Deprecated Deprecated as of 1.3, use StringSubstitutor instead. This class will be removed in 2.0.
Substitutes variables within a string by values.
public class
StrTokenizer

Deprecated Deprecated as of 1.3, use StringTokenizer instead. This class will be removed in 2.0.
Tokenizes a string based on delimiters (separators) and supporting quoting and ignored character concepts.
public class
TextStringBuilder

References Deprecated Builder is deprecated or references (maybe indirectly) at least one deprecated element.
Builds a string from constituent parts providing a more flexible and powerful API than StringBuffer and StringBuilder.
public class
WordUtils

Operations on Strings that contain words.

Enum Summary

Modifier and TypeEnum and Description
public enum
CharacterPredicates

Commonly used implementations of CharacterPredicate.