Class StringUtils

java.lang.Object
com.realtime.crossfire.jxclient.util.StringUtils

public class StringUtils extends Object
Utility class for string manipulation.
  • Method Details

    • trimLeading

      @NotNull public static @NotNull String trimLeading(@NotNull @NotNull CharSequence str)
      Removes leading whitespace from a string.
      Parameters:
      str - the string
      Returns:
      the string without leading whitespace
    • splitFields

      @NotNull public static @NotNull String @NotNull [] splitFields(@NotNull @NotNull String line) throws UnterminatedTokenException
      Splits a line into tokens. Handles quoting ("...").
      Parameters:
      line - the line
      Returns:
      the tokens
      Throws:
      UnterminatedTokenException - if a quoted token is unterminated