@Singleton public class HexUdfSource extends Object implements UdfSourceAssembly
import 'net.hasor.dataql.fx.encryt.HexUdfSource' as hex;UdfSourceAssembly.TypeUdfMap, UdfSourceAssembly.UdfName, UdfSourceAssembly.UdfParams| 构造器和说明 |
|---|
HexUdfSource() |
| 限定符和类型 | 方法和说明 |
|---|---|
static String |
byteToHex(List<Byte> content)
将二进制数据转换为 16进制字符串
|
static String |
byteToString(List<Byte> content,
String charset)
二进制数据转换为字符串
|
static byte[] |
hexToByte(String content)
将二进制数据转换为 16进制字符串
|
static byte[] |
stringToByte(String content,
String charset)
字符串转换为二进制数据
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetPredicate, getSupplier, getUdfResourcepublic static byte[] hexToByte(String content)
public static byte[] stringToByte(String content, String charset) throws UnsupportedEncodingException
Copyright © 2020. All rights reserved.