public class BCD extends Object
| 构造器和说明 |
|---|
BCD() |
public static byte[] strToBcd(String asc)
asc - ASCII字符串public static byte[] ascToBcd(byte[] ascii)
ascii - ASCII byte数组public static byte[] ascToBcd(byte[] ascii,
int ascLength)
ascii - ASCII byte数组ascLength - 长度public static String bcdToStr(byte[] bytes)
bytes - BCD byte数组private static byte ascToBcd(byte asc)
asc - ACSIICopyright © 2020. All rights reserved.