public class BCDHelper extends Object
| 构造器和说明 |
|---|
BCDHelper() |
| 限定符和类型 | 方法和说明 |
|---|---|
static int |
BoolToByte(boolean bl) |
static String |
BytesToHexString(byte[] bts) |
static String |
BytesToHexString(byte[] bts,
int offset,
int count) |
static String |
decode(String hexStr) |
static String |
dword2String(long value) |
static byte[] |
encode_ret_bytes(String str) |
static String |
encode(String str) |
static String |
FStrLen(String str,
int len) |
static byte[] |
StrToBCD(String str)
用BCD码压缩数字字符串
|
static byte[] |
StrToBCD(String str,
int numlen) |
static String |
word2String(int value) |
public static byte[] StrToBCD(String str)
str - 压缩的字符串public static byte[] StrToBCD(String str, int numlen)
public static String BytesToHexString(byte[] bts)
public static String BytesToHexString(byte[] bts, int offset, int count)
public static int BoolToByte(boolean bl)
public static byte[] encode_ret_bytes(String str) throws UnsupportedEncodingException
public static String encode(String str) throws UnsupportedEncodingException
public static String word2String(int value)
public static String dword2String(long value)
Copyright © 2020. All rights reserved.