类 CheckUtils

java.lang.Object
com.inlaylink.rfid.util.CheckUtils

public class CheckUtils extends Object
The type Check utils.
  • 构造器详细资料

    • CheckUtils

      public CheckUtils()
  • 方法详细资料

    • getCheckSum

      public static byte getCheckSum(byte[] bytes, int fromIndex, int len)
      Gets check sum.
      参数:
      bytes - the bytes
      fromIndex - the from index
      len - 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 length
      fromIndex - the from index
      toIndex - the to index
    • checkArrayLen

      public static boolean checkArrayLen(byte[] bytes, int length)
      Check array len boolean.
      参数:
      bytes - the bytes
      length - the length
      返回:
      the boolean
    • isEmpty

      public static boolean isEmpty(byte[] bytes)
      Is empty boolean.
      参数:
      bytes - the bytes
      返回:
      the boolean
    • isNotHexString

      public static boolean isNotHexString(String str)
      Is not hex string boolean.
      参数:
      str - the str
      返回:
      the boolean