| 程序包 | 说明 |
|---|---|
| com.github.houbb.heaven.util.codec |
| 限定符和类型 | 方法和说明 |
|---|---|
static byte[] |
CodecSupport.toBytes(char[] chars,
String encoding)
Converts the specified character array into a byte array using the specified character encoding.
|
static byte[] |
CodecSupport.toBytes(String source,
String encoding)
Converts the specified source to a byte array via the specified encoding, throwing a
CodecException if the encoding fails. |
static char[] |
CodecSupport.toChars(byte[] bytes,
String encoding)
Converts the specified byte array to a character array using the specified character encoding.
|
static String |
CodecSupport.toString(byte[] bytes,
String encoding)
Converts the specified byte array to a String using the specified character encoding.
|
Copyright © 2024. All rights reserved.