|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object de.cscc.crypto.util.ByteUtil
ByteUtil Class. Class that holds only static methods to convert bytes and byte arrays to Strings. These Strings holds the hex or binary representation of the converted byte or byte arrays. This class can't be instance, because its constructor is private.
Method Summary | |
static String |
toBin(byte[] in)
Converts byte[] to binary representation. |
static String |
toBin(int in)
Converts byte to binary representation. |
static String |
toHex(byte in)
Converts byte to hex representation. |
static String |
toHex(byte[] in)
Converts byte[] to hex representation. |
static long |
toLong(byte[] input,
int inputOffset)
Converts byte[8] to long representation. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
public static String toBin(int in)
in
- byte that will be converted.
public static String toBin(byte[] in)
in
- byte[] that will be converted.
public static String toHex(byte in)
in
- byte that will be converted.
public static String toHex(byte[] in)
in
- byte[] that will be converted.
public static long toLong(byte[] input, int inputOffset) throws IllegalBlockSizeException
input
- byte[8] that will be converted.inputOffset
- the offset in input where input starts.
IllegalBlockSizeException
- if input length lesser than 8.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |