Package org.apache.commons.text.lookup
Class AbstractStringLookup
java.lang.Object
org.apache.commons.text.lookup.AbstractStringLookup
- All Implemented Interfaces:
StringLookup
- Direct Known Subclasses:
ConstantStringLookup
,DateStringLookup
,DnsStringLookup
,FileStringLookup
,FunctionStringLookup
,InterpolatorStringLookup
,JavaPlatformStringLookup
,LocalHostStringLookup
,PropertiesStringLookup
,ResourceBundleStringLookup
,ScriptStringLookup
,UrlDecoderStringLookup
,UrlEncoderStringLookup
,UrlStringLookup
,XmlStringLookup
A default lookup for others to extend in this package.
- Since:
- 1.3
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected String
substringAfter
(String value, char ch) Deprecated.protected String
substringAfter
(String value, String str) Deprecated.UseStringUtils.substringAfter(String, String)
.protected String
substringAfterLast
(String value, char ch) Deprecated.UseStringUtils.substringAfterLast(String, int)
.(package private) static String
toLookupKey
(String left, String right) Creates a lookup key for a given file and key.(package private) static String
toLookupKey
(String left, String separator, String right) Creates a lookup key for a given file and key.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.apache.commons.text.lookup.StringLookup
lookup
-
Field Details
-
SPLIT_CH
protected static final char SPLIT_CHThe default split char.- See Also:
-
SPLIT_STR
The default split string.
-
-
Constructor Details
-
AbstractStringLookup
AbstractStringLookup()
-
-
Method Details
-
toLookupKey
Creates a lookup key for a given file and key. -
toLookupKey
Creates a lookup key for a given file and key. -
substringAfter
Deprecated.UseStringUtils.substringAfter(String, int)
.Returns the substring after the first occurrence ofch
invalue
.- Parameters:
value
- The source string.ch
- The character to search.- Returns:
- a new string.
-
substringAfter
Deprecated.UseStringUtils.substringAfter(String, String)
.Returns the substring after the first occurrence ofstr
invalue
.- Parameters:
value
- The source string.str
- The string to search.- Returns:
- a new string.
-
substringAfterLast
Deprecated.UseStringUtils.substringAfterLast(String, int)
.Returns the substring after the first occurrence ofch
invalue
.- Parameters:
value
- The source string.ch
- The character to search.- Returns:
- a new string.
-
StringUtils.substringAfter(String, int)
.