类 ArrayUtils

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

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

    • ArrayUtils

      public ArrayUtils()
  • 方法详细资料

    • mergeBytes

      public static byte[] mergeBytes(byte[] lBytes, byte[] rBytes)
      Merge bytes byte [ ].
      参数:
      lBytes - the l bytes
      rBytes - the r bytes
      返回:
      the byte [ ]
    • bytesToHexString

      public static String bytesToHexString(byte[] bytes, int fromIndex, int len)
      Bytes to hex string string.
      参数:
      bytes - the bytes
      fromIndex - the from index
      len - the len
      返回:
      the string
    • hexStringToBytes

      public static byte[] hexStringToBytes(String hex)
      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 byte
      rByte - the r byte
      返回:
      the int
    • byteArrayToInt

      public static int byteArrayToInt(byte[] src, int fromIndex, int len)
      Byte array to int int.
      参数:
      src - the src
      fromIndex - the from index
      len - the len
      返回:
      the int
    • byteArrayToInt

      public static int byteArrayToInt(byte[] src, int fromIndex, int len, boolean bigEndian)
      Byte array to int int.
      参数:
      src - the src
      fromIndex - the from index
      len - the len
      bigEndian - the big endian
      返回:
      the int
    • bytes2SignInt

      public static int bytes2SignInt(byte[] bytes, int index)
      Bytes 2 sign int int.
      参数:
      bytes - the bytes
      index - the index
      返回:
      the int
    • intToByteArray

      public static byte[] intToByteArray(int src)
      Int to byte array byte [ ].
      参数:
      src - the src
      返回:
      the byte [ ]