public class Hex2AscUtil extends Object
Constructor and Description |
---|
Hex2AscUtil() |
Modifier and Type | Method and Description |
---|---|
static int |
ascToHex(int asc)
ASCII转十六进制
|
static String |
hexStr2Str(String hexStr)
十六进制转换字符串
|
static int |
hexToAsc(int hex)
十六进制转ASCII
|
static String |
str2HexStr(String str)
字符串转换成十六进制字符串
|
public static int ascToHex(int asc)
asc
- public static int hexToAsc(int hex)
asc
- public static String str2HexStr(String str)
String
- str 待转换的ASCII字符串Copyright © 2006–2018 TinyGroup. All rights reserved.