public abstract class CharsetUtils extends Object
| 限定符和类型 | 字段和说明 |
|---|---|
static Charset |
BIG_5 |
static String |
BIG_5_NAME |
static byte[] |
BOM_UTF_16BE |
static byte[] |
BOM_UTF_16LE |
static byte[] |
BOM_UTF_8 |
private static LruMap<String,Charset> |
cache |
static Charset |
DEFAULT |
static Charset |
GB_2312 |
static String |
GB_2312_NAME |
static Charset |
GBK |
static String |
GBK_NAME |
static Charset |
ISO_8859_1 |
static String |
ISO_8859_1_NAME |
static Charset |
US_ASCII |
static String |
US_ASCII_NAME |
static Charset |
UTF_16 |
static String |
UTF_16_NAME |
static Charset |
UTF_16BE |
static String |
UTF_16BE_NAME |
static Charset |
UTF_16LE |
static String |
UTF_16LE_NAME |
static Charset |
UTF_8 |
static String |
UTF_8_NAME |
| 构造器和说明 |
|---|
CharsetUtils() |
| 限定符和类型 | 方法和说明 |
|---|---|
static CharsetDecoder |
newDecoder(Charset charset) |
static CharsetEncoder |
newEncoder(Charset charset) |
static Charset |
toCharset(Charset charset) |
static Charset |
toCharset(Charset charset,
Charset defaultCharset) |
static Charset |
toCharset(String charset) |
static Charset |
toCharset(String charset,
Charset defaultCharset) |
public static final Charset ISO_8859_1
public static final Charset US_ASCII
public static final Charset UTF_16
public static final Charset UTF_16BE
public static final Charset UTF_16LE
public static final Charset UTF_8
public static final Charset GBK
public static final Charset GB_2312
public static final Charset BIG_5
public static final Charset DEFAULT
public static final byte[] BOM_UTF_8
public static final byte[] BOM_UTF_16LE
public static final byte[] BOM_UTF_16BE
public static CharsetDecoder newDecoder(Charset charset)
public static CharsetEncoder newEncoder(Charset charset)
Copyright © 2020. All rights reserved.