public class HexUtils extends Object
| 构造器和说明 |
|---|
HexUtils() |
| 限定符和类型 | 方法和说明 |
|---|---|
static String |
ascToString(byte[] data) |
static int |
byte2Int(byte data) |
static long |
bytes2Long(byte[] byteNum,
int pos) |
static String |
bytesToHexString(byte src) |
static String |
bytesToHexString(byte[] src) |
static String |
bytesToHexString(byte[] src,
boolean format) |
static long |
fourBytes2LongLE(byte byte1,
byte byte2,
byte byte3,
byte byte4) |
static byte[] |
hexStringToBytes(String hexString) |
static int |
oneByte2Int(byte[] buf,
int pos) |
static byte[] |
stringToAsc(String str) |
static int |
towBytes2IntLE(byte byte1,
byte byte2) |
static int |
twoBytes2Int(byte[] buf,
int pos) |
static int |
twoBytes2IntLE(byte[] buf,
int pos) |
static void |
writeLong(long num,
byte[] buffer,
int pos) |
static void |
writeOneByte(int val,
byte[] buffer,
int pos) |
static void |
writeTwoBytes(int val,
byte[] buffer,
int pos) |
static void |
writeTwoBytesLE(int val,
byte[] buffer,
int pos) |
public static String bytesToHexString(byte src)
public static String bytesToHexString(byte[] src, boolean format)
public static String bytesToHexString(byte[] src)
public static byte[] hexStringToBytes(String hexString)
public static void writeLong(long num,
byte[] buffer,
int pos)
public static long bytes2Long(byte[] byteNum,
int pos)
public static int twoBytes2Int(byte[] buf,
int pos)
public static int twoBytes2IntLE(byte[] buf,
int pos)
public static void writeTwoBytes(int val,
byte[] buffer,
int pos)
public static void writeTwoBytesLE(int val,
byte[] buffer,
int pos)
public static void writeOneByte(int val,
byte[] buffer,
int pos)
public static int oneByte2Int(byte[] buf,
int pos)
public static int byte2Int(byte data)
public static int towBytes2IntLE(byte byte1,
byte byte2)
public static long fourBytes2LongLE(byte byte1,
byte byte2,
byte byte3,
byte byte4)
public static byte[] stringToAsc(String str)
public static String ascToString(byte[] data)
Copyright © 2020. All rights reserved.