packagecom.kingstar.mnReport.util;importjava.util.regex.Matcher;importjava.util.regex.Pattern;/*** @ClassName AsciiConvertUtil
* @Description
* @Author xinsen.liao
* @Date 2020/6/10 16:13*/
public classAsciiConvertUtil {public static char ascii2Char(intASCII) {return (char) ASCII;
}public static int char2ASCII(charc) {return (int) c;
}public static String ascii2String(int[] ASCIIs) {
StringBuffer sb= newStringBuffer();for (int i = 0; i < ASCIIs.length; i++) {
sb.append((char) ascii2Char(ASCIIs[i]));
}returnsb.toString();
}public staticString ascii2String(String ASCIIs) {
String[] ASCIIss= ASCIIs.split(",");
StringBuffer sb= newStringBuffer();for (int i = 0; i < ASCIIss.length; i++) {
sb.append((char) ascii2Char(Integer.parseInt(ASCIIss[i]))