Class StringUtils
java.lang.Object
com.realtime.crossfire.jxclient.util.StringUtils
Utility class for string manipulation.
-
Method Summary
Modifier and TypeMethodDescriptionstatic @NotNull String @NotNull []splitFields(@NotNull String line) Splits a line into tokens.static @NotNull StringtrimLeading(@NotNull CharSequence str) Removes leading whitespace from a string.
-
Method Details
-
trimLeading
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
-