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
  • Field Details

    • SPLIT_CH

      protected static final char SPLIT_CH
      The default split char.
      See Also:
    • SPLIT_STR

      protected static final String SPLIT_STR
      The default split string.
  • Constructor Details

    • AbstractStringLookup

      AbstractStringLookup()
  • Method Details

    • 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.
      Use StringUtils.substringAfter(String, int).
      Returns the substring after the first occurrence of ch in value.
      Parameters:
      value - The source string.
      ch - The character to search.
      Returns:
      a new string.
    • substringAfter

      @Deprecated protected String substringAfter(String value, String str)
      Deprecated.
      Use StringUtils.substringAfter(String, String).
      Returns the substring after the first occurrence of str in value.
      Parameters:
      value - The source string.
      str - The string to search.
      Returns:
      a new string.
    • substringAfterLast

      @Deprecated protected String substringAfterLast(String value, char ch)
      Deprecated.
      Use StringUtils.substringAfterLast(String, int).
      Returns the substring after the first occurrence of ch in value.
      Parameters:
      value - The source string.
      ch - The character to search.
      Returns:
      a new string.