public class StringUtils
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
static byte[] |
getAsciiBytes(java.lang.String string)
Encodes the given String into a sequence of bytes using the Ascii
character set.
|
static byte[] |
getLatin1Bytes(java.lang.String string)
Encodes the given String into a sequence of bytes using the Latin1
character set.
|
static java.lang.String |
strip(java.lang.String source,
char delimiter)
Strips a delimiter character from both ends of the source string.
|
static java.lang.String |
strip(java.lang.String source,
char delimiter,
boolean start,
boolean end)
Strips a delimiter character from a source string.
|
public static byte[] getAsciiBytes(java.lang.String string)
string - The string to encode.public static byte[] getLatin1Bytes(java.lang.String string)
string - The string to encode.public static java.lang.String strip(java.lang.String source,
char delimiter)
source - The source string to strip.delimiter - The character to remove.public static java.lang.String strip(java.lang.String source,
char delimiter,
boolean start,
boolean end)
source - The source string to strip.delimiter - The character to remove.start - Indicates if start of source should be stripped.end - Indicates if end of source should be stripped.Copyright © 2005-2012. All Rights Reserved.