public final class StringUtil
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
private static java.lang.String |
EMPTY_STRING |
static java.lang.String |
NEWLINE |
| Modifier | Constructor and Description |
|---|---|
private |
StringUtil() |
| Modifier and Type | Method and Description |
|---|---|
static java.lang.String[] |
split(java.lang.String value,
char delim)
Splits the specified
String with the specified delimiter. |
static java.lang.String[] |
split(java.lang.String value,
char delim,
int maxParts)
Splits the specified
String with the specified delimiter in maxParts maximum parts. |
static java.lang.String |
stripControlCharacters(java.lang.Object value)
Strip an Object of it's ISO control characters.
|
static java.lang.String |
stripControlCharacters(java.lang.String value)
Strip a String of it's ISO control characters.
|
static java.lang.String |
substringAfter(java.lang.String value,
char delim)
Get the item after one char delim if the delim is found (else null).
|
public static final java.lang.String NEWLINE
private static final java.lang.String EMPTY_STRING
public static java.lang.String stripControlCharacters(java.lang.Object value)
value - The Object that should be stripped. This objects toString method will
called and the result passed to stripControlCharacters(String).String
A new String instance with its hexadecimal control characters replaced
by a space. Or the unmodified String if it does not contain any ISO
control characters.public static java.lang.String stripControlCharacters(java.lang.String value)
value - The String that should be stripped.String
A new String instance with its hexadecimal control characters replaced
by a space. Or the unmodified String if it does not contain any ISO
control characters.public static java.lang.String[] split(java.lang.String value,
char delim)
String with the specified delimiter. This operation is a simplified and optimized
version of String.split(String).public static java.lang.String[] split(java.lang.String value,
char delim,
int maxParts)
String with the specified delimiter in maxParts maximum parts.
This operation is a simplified and optimized
version of String.split(String, int).public static java.lang.String substringAfter(java.lang.String value,
char delim)
String.split(String, int).