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 StringsubstringAfter(String value, char ch) Deprecated.protected StringsubstringAfter(String value, String str) Deprecated.UseStringUtils.substringAfter(String, String).protected StringsubstringAfterLast(String value, char ch) Deprecated.UseStringUtils.substringAfterLast(String, int).(package private) static StringtoLookupKey(String left, String right) Creates a lookup key for a given file and key.(package private) static StringtoLookupKey(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, waitMethods 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 ofchinvalue.- 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 ofstrinvalue.- 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 ofchinvalue.- Parameters:
value- The source string.ch- The character to search.- Returns:
- a new string.
-
StringUtils.substringAfter(String, int).