类 ArrayUtils
java.lang.Object
com.inlaylink.rfid.util.ArrayUtils
The type Array utils.
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明static intbyteArrayToInt(byte[] src, int fromIndex, int len) Byte array to int int.static intbyteArrayToInt(byte[] src, int fromIndex, int len, boolean bigEndian) Byte array to int int.static intbytes2SignInt(byte[] bytes, int index) Bytes 2 sign int int.static StringbytesToHexString(byte[] bytes, int fromIndex, int len) Bytes to hex string string.static byte[]hexStringToBytes(String hex) Hex string to bytes byte [ ].static byte[]intToByteArray(int src) Int to byte array byte [ ].static byte[]mergeBytes(byte[] lBytes, byte[] rBytes) Merge bytes byte [ ].static intspliceByteToInt(byte lByte, byte rByte) Splice byte to int int.
-
构造器详细资料
-
ArrayUtils
public ArrayUtils()
-
-
方法详细资料
-
mergeBytes
public static byte[] mergeBytes(byte[] lBytes, byte[] rBytes) Merge bytes byte [ ].- 参数:
lBytes- the l bytesrBytes- the r bytes- 返回:
- the byte [ ]
-
bytesToHexString
Bytes to hex string string.- 参数:
bytes- the bytesfromIndex- the from indexlen- the len- 返回:
- the string
-
hexStringToBytes
Hex string to bytes byte [ ].- 参数:
hex- the hex- 返回:
- the byte [ ]
-
spliceByteToInt
public static int spliceByteToInt(byte lByte, byte rByte) Splice byte to int int.- 参数:
lByte- the l byterByte- the r byte- 返回:
- the int
-
byteArrayToInt
public static int byteArrayToInt(byte[] src, int fromIndex, int len) Byte array to int int.- 参数:
src- the srcfromIndex- the from indexlen- the len- 返回:
- the int
-
byteArrayToInt
public static int byteArrayToInt(byte[] src, int fromIndex, int len, boolean bigEndian) Byte array to int int.- 参数:
src- the srcfromIndex- the from indexlen- the lenbigEndian- the big endian- 返回:
- the int
-
bytes2SignInt
public static int bytes2SignInt(byte[] bytes, int index) Bytes 2 sign int int.- 参数:
bytes- the bytesindex- the index- 返回:
- the int
-
intToByteArray
public static byte[] intToByteArray(int src) Int to byte array byte [ ].- 参数:
src- the src- 返回:
- the byte [ ]
-