public final class StringUtil
extends java.lang.Object
限定符和类型 | 字段和说明 |
---|---|
static java.lang.String |
NEWLINE |
限定符和类型 | 方法和说明 |
---|---|
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 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)
.