Package org.apache.commons.text.lookup
Class UrlStringLookup
- java.lang.Object
-
- org.apache.commons.text.lookup.AbstractStringLookup
-
- org.apache.commons.text.lookup.UrlStringLookup
-
- All Implemented Interfaces:
StringLookup
final class UrlStringLookup extends AbstractStringLookup
Looks up keys from an XML document.Looks up the value for a given key in the format "Charset:URL".
For example: "UTF-8:com/domain/document.properties".
- Since:
- 1.5
-
-
Field Summary
Fields Modifier and Type Field Description (package private) static UrlStringLookup
INSTANCE
Defines the singleton for this class.-
Fields inherited from class org.apache.commons.text.lookup.AbstractStringLookup
SPLIT_CH, SPLIT_STR
-
-
Constructor Summary
Constructors Modifier Constructor Description private
UrlStringLookup()
No need to build instances for now.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
lookup(java.lang.String key)
Looks up the value for the key in the format "DocumentPath:XPath".-
Methods inherited from class org.apache.commons.text.lookup.AbstractStringLookup
substringAfter, substringAfter, substringAfterLast, toLookupKey, toLookupKey
-
-
-
-
Field Detail
-
INSTANCE
static final UrlStringLookup INSTANCE
Defines the singleton for this class.
-
-