public class StringUtil extends Object
Modifier and Type | Field and Description |
---|---|
static String |
US_ASCII |
static String |
UTF_8 |
Constructor and Description |
---|
StringUtil() |
Modifier and Type | Method and Description |
---|---|
static byte[] |
getBytes(String string,
Charset charset) |
static byte[] |
getBytesAscii(String string) |
static byte[] |
getBytesUnchecked(String string,
String charsetName) |
static byte[] |
getBytesUtf8(String string) |
static String |
newString(byte[] bytes,
Charset charset) |
static String |
newString(byte[] bytes,
String charsetName) |
static String |
newStringUsAscii(byte[] bytes) |
static String |
newStringUtf8(byte[] bytes) |
public static final String UTF_8
public static final String US_ASCII
Copyright © 2015. All rights reserved.