public enum CodecUtils extends Enum<CodecUtils>
| 限定符和类型 | 方法和说明 |
|---|---|
static String |
convertFromIso88591ToUtf8(String value) |
static String |
convertFromUtf8ToIso88591(String value) |
static byte[] |
toBytesDirect(String singleOctets)
Returns a byte array representing the given string,
truncating each character into a byte directly.
|
static String |
toStringDirect(byte[] bytes)
Returns a string representing the given byte array,
treating each byte as a single octet character.
|
static CodecUtils |
valueOf(String name)
返回带有指定名称的该类型的枚举常量。
|
static CodecUtils[] |
values()
按照声明该枚举类型的常量的顺序, 返回
包含这些常量的数组。
|
public static CodecUtils[] values()
for (CodecUtils c : CodecUtils.values()) System.out.println(c);
public static CodecUtils valueOf(String name)
name - 要返回的枚举常量的名称。IllegalArgumentException - 如果该枚举类型没有带有指定名称的常量NullPointerException - 如果参数为空值public static byte[] toBytesDirect(String singleOctets)
IllegalArgumentException - if the input string contains any multi-octet characterpublic static String toStringDirect(byte[] bytes)
Copyright © 2022. All rights reserved.