类 ByteUtil

java.lang.Object
cn.vonce.sql.uitls.ByteUtil

public class ByteUtil extends Object
  • 构造器详细资料

    • ByteUtil

      public ByteUtil()
  • 方法详细资料

    • concat

      public static byte[] concat(byte[] buf1, byte[] buf2)
      Join two byte arrays to a new byte array.
    • concat

      public static byte[] concat(byte[] buf1, byte[] buf2, byte[] buf3)
      Join three byte arrays to a new byte array.
    • toHexString

      public static String toHexString(byte[] b)
      Convert bytes to hex string (all lower-case).
      参数:
      b - Input bytes.
      返回:
      Hex string.
    • toHex

      public static String toHex(byte b)
      Convert byte to hex string (all lower-case).
      参数:
      b - Input bytes.
      返回:
      Hex string.
    • fromHex

      public static byte fromHex(String s)
    • fromHexString

      public static byte[] fromHexString(String s)
    • isSha1

      public static boolean isSha1(String s)
    • isSha256

      public static boolean isSha256(String s)