类 CheckUtils
java.lang.Object
com.inlaylink.rfid.util.CheckUtils
The type Check utils.
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明static booleancheckArrayLen(byte[] bytes, int length) Check array len boolean.static bytegetCheckSum(byte[] bytes, int fromIndex, int len) Gets check sum.static booleanisEmpty(byte[] bytes) Is empty boolean.static booleanisNotHexString(String str) Is not hex string boolean.static voidrangeCheck(int arrayLength, int fromIndex, int toIndex) Range check.static booleanverifyChecksum(byte[] bytes) Verify checksum boolean.
-
构造器详细资料
-
CheckUtils
public CheckUtils()
-
-
方法详细资料
-
getCheckSum
public static byte getCheckSum(byte[] bytes, int fromIndex, int len) Gets check sum.- 参数:
bytes- the bytesfromIndex- the from indexlen- the len- 返回:
- the check sum
-
verifyChecksum
public static boolean verifyChecksum(byte[] bytes) Verify checksum boolean.- 参数:
bytes- the bytes- 返回:
- the boolean
-
rangeCheck
public static void rangeCheck(int arrayLength, int fromIndex, int toIndex) Range check.- 参数:
arrayLength- the array lengthfromIndex- the from indextoIndex- the to index
-
checkArrayLen
public static boolean checkArrayLen(byte[] bytes, int length) Check array len boolean.- 参数:
bytes- the byteslength- the length- 返回:
- the boolean
-
isEmpty
public static boolean isEmpty(byte[] bytes) Is empty boolean.- 参数:
bytes- the bytes- 返回:
- the boolean
-
isNotHexString
Is not hex string boolean.- 参数:
str- the str- 返回:
- the boolean
-