Class StringUtils


  • public final class StringUtils
    extends Object
    StringUtils
    • Constructor Detail

      • StringUtils

        public StringUtils()
    • Method Detail

      • replaceDoubleSingleQuotes

        public static String replaceDoubleSingleQuotes​(String value)
        Replace double single quotes in the target string
      • replaceSingleQuotes

        public static String replaceSingleQuotes​(String value)
        Replace single quotes in the target string by double single quotes
      • parseNumber

        public static Number parseNumber​(String numberAsString)
                                  throws javax.jms.InvalidSelectorException
        Parse a number as string
        Throws:
        javax.jms.InvalidSelectorException
      • matches

        public static Boolean matches​(String text,
                                      String pattern,
                                      String escapeChar)
        Check if the given text matches a pattern
      • rightPad

        public static String rightPad​(String text,
                                      int len,
                                      char paddingChar)