Package org.apache.commons.lang3.text
Provides classes for handling and manipulating text, partly as an extension to java.text
.
The classes in this package are, for the most part, intended to be instantiated (i.e. they are not utility classes
with lots of static methods).
Amongst other classes, the text package provides a replacement for StringBuffer
named StrBuilder
, a class for substituting variables within a String named StrSubstitutor
and a replacement for StringTokenizer
named StrTokenizer
.
While somewhat ungainly, the Str
prefix has been used to ensure we don't clash with any current or future standard Java classes.
- Since:
- 2.1
-
Interface Summary Interface Description FormatFactory Deprecated. as of 3.6, use commons-text FormatFactory instead -
Class Summary Class Description CompositeFormat Deprecated. as of 3.6, use commons-text CompositeFormat insteadExtendedMessageFormat Deprecated. as of 3.6, use commons-text ExtendedMessageFormat insteadFormattableUtils Deprecated. as of 3.6, use commons-text FormattableUtils insteadStrBuilder Deprecated. as of 3.6, use commons-text TextStringBuilder insteadStrLookup<V> Deprecated. as of 3.6, use commons-text StringLookupFactory insteadStrLookup.MapStrLookup<V> Lookup implementation that uses a Map.StrLookup.SystemPropertiesStrLookup Lookup implementation based on system properties.StrMatcher Deprecated. as of 3.6, use commons-text StringMatcherFactory insteadStrMatcher.CharMatcher Class used to define a character for matching purposes.StrMatcher.CharSetMatcher Class used to define a set of characters for matching purposes.StrMatcher.NoMatcher Class used to match no characters.StrMatcher.StringMatcher Class used to define a set of characters for matching purposes.StrMatcher.TrimMatcher Class used to match whitespace as per trim().StrSubstitutor Deprecated. as of 3.6, use commons-text StringSubstitutor insteadStrTokenizer Deprecated. as of 3.6, use commons-text StringTokenizer insteadWordUtils Deprecated. as of 3.6, use commons-text WordUtils instead