|
IBM Bank Transformation Toolkit Javadoc | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ibm.btt.format.impl.HexCodecUtil
public class HexCodecUtil
Constructor Summary | |
---|---|
HexCodecUtil()
|
Method Summary | |
---|---|
static byte[] |
bytesReverseOrder(byte[] b)
reverse the sequence of byte[] |
static java.lang.String |
bytesToString(byte[] b)
convert byte[] to String |
static byte[] |
decodeHex(char[] data)
|
static char[] |
encodeHex(byte[] data)
|
static double |
hBytesToDouble(byte[] b)
|
static float |
hBytesToFloat(byte[] b)
convert HL byte[] to float |
static int |
hBytesToInt(byte[] b)
convert HL byte[] to int |
static long |
hBytesToLong(byte[] b)
|
static short |
hBytesToShort(byte[] b)
convert HL byte[] to short |
static double |
lBytesToDouble(byte[] b)
|
static float |
lBytesToFloat(byte[] b)
convert LH byte[] to float |
static int |
lBytesToInt(byte[] b)
convert LH byte[] to int |
static long |
lBytesToLong(byte[] b)
|
static short |
lBytesToShort(byte[] b)
convert LH byte[] to short |
static byte[] |
stringToBytes(java.lang.String s)
convert String to byte[] |
protected static int |
toDigit(char ch,
int index)
|
static byte[] |
toHL(double value)
|
static byte[] |
toHL(float f)
convert float to byte[] in HL sequence |
static byte[] |
toHL(int n)
convert int to HL byte[] |
static byte[] |
toHL(long n)
|
static byte[] |
toHL(short n)
convert short to HL byte[] |
static byte[] |
toLH(double value)
|
static byte[] |
toLH(float f)
convert float to byte[] in LH sequence |
static byte[] |
toLH(int n)
convert int to LH byte[] |
static byte[] |
toLH(long n)
|
static byte[] |
toLH(short n)
convert short to LH byte[] |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public HexCodecUtil()
Method Detail |
---|
public static byte[] decodeHex(char[] data)
protected static int toDigit(char ch, int index)
public static char[] encodeHex(byte[] data)
public static byte[] toLH(int n)
n
- int
public static byte[] toHL(int n)
n
- int
public static byte[] toLH(long n)
public static byte[] toHL(long n)
public static byte[] toLH(short n)
n
- short
public static byte[] toHL(short n)
n
- short
public static byte[] toLH(float f)
public static byte[] toHL(float f)
public static byte[] toHL(double value)
public static byte[] toLH(double value)
public static java.lang.String bytesToString(byte[] b)
b
- byte[]
public static byte[] stringToBytes(java.lang.String s)
s
- String
public static int hBytesToInt(byte[] b)
b
- byte[]
public static int lBytesToInt(byte[] b)
b
- byte[]
public static long hBytesToLong(byte[] b)
public static long lBytesToLong(byte[] b)
public static short hBytesToShort(byte[] b)
b
- byte[]
public static short lBytesToShort(byte[] b)
b
- byte[]
public static float hBytesToFloat(byte[] b)
b
- byte[]
public static float lBytesToFloat(byte[] b)
b
- byte[]
public static double hBytesToDouble(byte[] b)
public static double lBytesToDouble(byte[] b)
public static byte[] bytesReverseOrder(byte[] b)
|
IBM Bank Transformation Toolkit Javadoc | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |