Class StringUtils

    • Field Detail

      • NL

        public static final String NL
    • Method Detail

      • startsWith

        public static boolean startsWith​(StringBuffer buffer,
                                         String pattern)
        Determines if buffer starts with specific literal(s).
        Parameters:
        buffer - Examined StringBuffer
        pattern - a pattern which should start in buffer
        Returns:
        true if buffer's literal starts with given pattern, or both are empty.