Package org.apache.commons.text.lookup
package org.apache.commons.text.lookup
Provides algorithms for looking up strings for use with a StringSubstitutor
. The main class in this package is StringLookupFactory
.
Use StringLookupFactory
to create instances of string
lookups or access singleton string lookups. The main interface is StringLookup
which is implemented here in package private classes.
Like BiFunction
is a variant of Function
,
this BiStringLookup
is a variant of
StringLookup
.
The initial implementation was adapted from Apache Commons Log4j 2.11.0.
- Since:
- 1.3
-
ClassDescriptionA default lookup for others to extend in this package.A function-based lookup where the request for a lookup is answered by applying that function with a key.Lookups a String key for a String value.Looks up the value of a fully-qualified static final value.Formats the current date with the format given in the key in a format compatible with
SimpleDateFormat
.An enumeration definingStringLookup
objects available throughStringLookupFactory
.Looks up keys related to DNS entries like host name, canonical host name, host address.Looks up keys from an XML document.A function-based lookup where the request for a lookup is answered by applying that function with a key.Shorthands creatingIllegalArgumentException
instances using formatted strings.Constants for referring toInetAddress
APIs.Proxies otherStringLookup
s using a keys within ${} markers using the format "${StringLookup:Key}".Looks up keys related to Java: Java version, JRE version, VM version, and so on.Looks up keys related to the local host: host name, canonical host name, host address.Looks up keys from an XML document.Looks up keys from resource bundles.Executes the script with the given engine name.Lookups a String key for a String value.Create instances of string lookups or access singleton string lookups implemented in this package.Decodes URL Strings using the UTF-8 encoding.Encodes URL Strings using the UTF-8 encoding.Looks up keys from an XML document.Looks up keys from an XML document.