Class StringUtils


  • public final class StringUtils
    extends Object
    Collection of various helper methods to manipulate strings.
    • Method Detail

      • split

        public static String[] split​(String input,
                                     String regex)
        Splits the input string with the given regex and filters empty strings.
        Parameters:
        input - the string to split.
        Returns:
        the array of strings computed by splitting this string
      • printShortBuffer

        public static String printShortBuffer​(ByteBuffer buffer)
        Small utility to print diagnostic information about ByteBuffer
        Parameters:
        buffer - the buffer to print-out
        Returns:
        diagnostic information about the buffer