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
abstract class AbstractStringLookup extends Object implements StringLookup
A default lookup for others to extend in this package.- Since:
- 1.3
-
-
Constructor Summary
Constructors Constructor Description AbstractStringLookup()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description protected StringsubstringAfter(String value, char ch)Deprecated.protected StringsubstringAfter(String value, String str)Deprecated.protected StringsubstringAfterLast(String value, char ch)Deprecated.(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, wait
-
Methods inherited from interface org.apache.commons.text.lookup.StringLookup
lookup
-
-
-
-
Field Detail
-
SPLIT_CH
protected static final char SPLIT_CH
The default split char.- See Also:
- Constant Field Values
-
SPLIT_STR
protected static final String SPLIT_STR
The default split string.
-
-
Method Detail
-
toLookupKey
static String toLookupKey(String left, String right)
Creates a lookup key for a given file and key.
-
toLookupKey
static String toLookupKey(String left, String separator, String right)
Creates a lookup key for a given file and key.
-
substringAfter
@Deprecated protected String substringAfter(String value, char ch)
Deprecated.Returns the substring after the first occurrence ofchinvalue.- Parameters:
value- The source string.ch- The character to search.- Returns:
- a new string.
-
substringAfter
@Deprecated protected String substringAfter(String value, String str)
Deprecated.Returns the substring after the first occurrence ofstrinvalue.- Parameters:
value- The source string.str- The string to search.- Returns:
- a new string.
-
substringAfterLast
@Deprecated protected String substringAfterLast(String value, char ch)
Deprecated.Returns the substring after the first occurrence ofchinvalue.- Parameters:
value- The source string.ch- The character to search.- Returns:
- a new string.
-
-