public final class StringUtil extends Object
Modifier and Type | Method and Description |
---|---|
static String[] |
split(String value,
char delim)
Splits the specified
String with the specified delimiter. |
static String[] |
split(String value,
char delim,
int maxParts)
Splits the specified
String with the specified delimiter in maxParts maximum parts. |
static String |
stripControlCharacters(Object value)
Strip an Object of it's ISO control characters.
|
static String |
stripControlCharacters(String value)
Strip a String of it's ISO control characters.
|
static String |
substringAfter(String value,
char delim)
Get the item after one char delim if the delim is found (else null).
|
public static final String NEWLINE
public static String stripControlCharacters(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 String stripControlCharacters(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 String[] split(String value, char delim)
String
with the specified delimiter. This operation is a simplified and optimized
version of String.split(String)
.public static String[] split(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 String substringAfter(String value, char delim)
String.split(String, int)
.Copyright © 2008–2018 The Netty Project. All rights reserved.