public class StringUtils
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private static java.util.regex.Pattern |
PATTERN_LEADING_WHITESPACE
A pattern matching leading whitespace.
|
Modifier | Constructor and Description |
---|---|
private |
StringUtils()
Private constructor to prevent instantiation.
|
Modifier and Type | Method and Description |
---|---|
static java.lang.String[] |
splitFields(java.lang.String line)
Splits a line into tokens.
|
static java.lang.String |
trimLeading(java.lang.CharSequence str)
Removes leading whitespace from a string.
|
@NotNull private static final java.util.regex.Pattern PATTERN_LEADING_WHITESPACE
@NotNull public static java.lang.String[] splitFields(@NotNull java.lang.String line) throws UnterminatedTokenException
line
- the lineUnterminatedTokenException
- if a quoted token is unterminated@NotNull public static java.lang.String trimLeading(@NotNull java.lang.CharSequence str)
str
- the string