|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object de.cscc.crypto.util.LongUtil
LongUtil Class. Class that hold only static methods to convert longs and long arrays to Strings. These Strings holds the hex or binary representation of the converted longs or long arrays. This class can't be instance, because its constructor is private.
Method Summary | |
static String |
toBin(long in)
Converts byte to binary representation. |
static String |
toBin(long[] in)
Converts long[] to binary representation. |
static byte[] |
toByteArray(long input)
Converts long to a new byte[8] |
static int |
toByteArray(long input,
byte[] output,
int outputOffset)
Converts long to a byte[] |
static String |
toHex(long in)
Converts long to hex representation. |
static String |
toHex(long[] in)
Converts long[] to hex 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(long in)
in
- long that will be converted.
public static String toBin(long[] in)
in
- long[] that will be converted.
public static String toHex(long in)
in
- long that will be converted.
public static String toHex(long[] in)
in
- long[] that will be converted.
public static byte[] toByteArray(long input)
input
- that will be converted to a new byte[8] array.
public static int toByteArray(long input, byte[] output, int outputOffset) throws ShortBufferException
input
- that will be converted to a byte[] array.output
- the buffer for the result.outputOffset
- the offset in output where the result is stored.
ShortBufferException
- if the given output is too small to hold the result.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |