java.lang.Objectcom.realtime.crossfire.jxclient.util.StringUtils
public class StringUtils
Utility class for string manipulation.
| Field Summary | |
|---|---|
private static java.util.regex.Pattern |
PATTERN_LEADING_WHITESPACE
A pattern matching leading whitespace. |
| Constructor Summary | |
|---|---|
private |
StringUtils()
Private constructor to prevent instantiation. |
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
@NotNull private static final java.util.regex.Pattern PATTERN_LEADING_WHITESPACE
| Constructor Detail |
|---|
private StringUtils()
| Method Detail |
|---|
@NotNull
public static java.lang.String[] splitFields(@NotNull
java.lang.String line)
throws UnterminatedTokenException
line - the line
UnterminatedTokenException - if a quoted token is unterminated
@NotNull
public static java.lang.String trimLeading(@NotNull
java.lang.CharSequence str)
str - the string