程序包 gu.sql2java
类 ArraySupport
java.lang.Object
gu.sql2java.ArraySupport
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明static final booleanbitCheck(byte[] bits, int index) returntrueif bit specialized byindexin byte arraybitsis 1,otherwisefalsestatic final byte[]bitReset(byte[] bits, int index) set bit specialized byindexin byte arraybitsto 0static final byte[]bitSet(byte[] bits, int index) set bit specialized byindexin byte arraybitsto 1static final byte[]bitSet(byte[] bits, int index, boolean set1) set bit specialized byindexin byte arraybitsto 0 ifset1istrue,otherwise set to 0static voidcopyToByteArray(String hex, byte[] dest) cast HEX string to byte array,copy to this destination,same length required withdeststatic final byte[]cast HEX string to byte arraystatic final StringtoHex(byte[] input) cast byte array to HEX stringstatic final Stringcast integral Number to HEX stringstatic final Stringcast byte array or number to HEX string
-
构造器详细资料
-
ArraySupport
public ArraySupport()
-
-
方法详细资料
-
toHex
cast byte array to HEX string- 参数:
input-- 返回:
- hex string or null if not byte[]
-
toHex
cast integral Number to HEX string- 参数:
input-- 返回:
- hex string or null if not Number
- 从以下版本开始:
- 4.2.0
-
toHex
cast byte array or number to HEX string- 参数:
input-- 返回:
- hex string or null if not byte[] or Number.
- 从以下版本开始:
- 4.2.0
-
fromHex
cast HEX string to byte array- 参数:
input-- 返回:
nullifinputis null
-
copyToByteArray
cast HEX string to byte array,copy to this destination,same length required withdest- 参数:
hex-dest-
-
bitCheck
public static final boolean bitCheck(byte[] bits, int index) returntrueif bit specialized byindexin byte arraybitsis 1,otherwisefalse- 参数:
bits-index-- 从以下版本开始:
- 4.0.0
-
bitSet
public static final byte[] bitSet(byte[] bits, int index) set bit specialized byindexin byte arraybitsto 1- 参数:
bits-index-- 返回:
- always
bits - 从以下版本开始:
- 4.0.0
-
bitReset
public static final byte[] bitReset(byte[] bits, int index) set bit specialized byindexin byte arraybitsto 0- 参数:
bits-index-- 返回:
- always
bits - 从以下版本开始:
- 4.0.0
-
bitSet
public static final byte[] bitSet(byte[] bits, int index, boolean set1) set bit specialized byindexin byte arraybitsto 0 ifset1istrue,otherwise set to 0- 参数:
bits-index-set1-- 返回:
- always
bits - 从以下版本开始:
- 4.0.0
-