程序包 gu.sql2java

类 ArraySupport

java.lang.Object
gu.sql2java.ArraySupport

public class ArraySupport extends Object
  • 构造器概要

    构造器
    构造器
    说明
     
  • 方法概要

    修饰符和类型
    方法
    说明
    static final boolean
    bitCheck(byte[] bits, int index)
    return true if bit specialized by index in byte array bits is 1,otherwise false
    static final byte[]
    bitReset(byte[] bits, int index)
    set bit specialized by index in byte array bits to 0
    static final byte[]
    bitSet(byte[] bits, int index)
    set bit specialized by index in byte array bits to 1
    static final byte[]
    bitSet(byte[] bits, int index, boolean set1)
    set bit specialized by index in byte array bits to 0 if set1 is true,otherwise set to 0
    static void
    copyToByteArray(String hex, byte[] dest)
    cast HEX string to byte array,copy to this destination,same length required with dest
    static final byte[]
    fromHex(String input)
    cast HEX string to byte array
    static final String
    toHex(byte[] input)
    cast byte array to HEX string
    static final String
    toHex(Number input)
    cast integral Number to HEX string
    static final String
    toHex(Object input)
    cast byte array or number to HEX string

    从类继承的方法 java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 构造器详细资料

    • ArraySupport

      public ArraySupport()
  • 方法详细资料

    • toHex

      public static final String toHex(byte[] input)
      cast byte array to HEX string
      参数:
      input -
      返回:
      hex string or null if not byte[]
    • toHex

      public static final String toHex(Number input)
      cast integral Number to HEX string
      参数:
      input -
      返回:
      hex string or null if not Number
      从以下版本开始:
      4.2.0
    • toHex

      public static final String toHex(Object input)
      cast byte array or number to HEX string
      参数:
      input -
      返回:
      hex string or null if not byte[] or Number.
      从以下版本开始:
      4.2.0
    • fromHex

      public static final byte[] fromHex(String input)
      cast HEX string to byte array
      参数:
      input -
      返回:
      null if input is null
    • copyToByteArray

      public static void copyToByteArray(String hex, byte[] dest)
      cast HEX string to byte array,copy to this destination,same length required with dest
      参数:
      hex -
      dest -
    • bitCheck

      public static final boolean bitCheck(byte[] bits, int index)
      return true if bit specialized by index in byte array bits is 1,otherwise false
      参数:
      bits -
      index -
      从以下版本开始:
      4.0.0
    • bitSet

      public static final byte[] bitSet(byte[] bits, int index)
      set bit specialized by index in byte array bits to 1
      参数:
      bits -
      index -
      返回:
      always bits
      从以下版本开始:
      4.0.0
    • bitReset

      public static final byte[] bitReset(byte[] bits, int index)
      set bit specialized by index in byte array bits to 0
      参数:
      bits -
      index -
      返回:
      always bits
      从以下版本开始:
      4.0.0
    • bitSet

      public static final byte[] bitSet(byte[] bits, int index, boolean set1)
      set bit specialized by index in byte array bits to 0 if set1 is true,otherwise set to 0
      参数:
      bits -
      index -
      set1 -
      返回:
      always bits
      从以下版本开始:
      4.0.0