|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectix.test.LongToBytes
public class LongToBytes
| Constructor Summary | |
|---|---|
LongToBytes()
|
|
| Method Summary | |
|---|---|
static long |
bytesToLong(byte[] bytes)
Converts a (big-endian) array of bytes to a long |
static java.lang.String |
bytesToLongStrings(byte[] bytes)
Converts an array of bytes to a string containing the "/"-separated string representations of longs taken from the array. |
static java.lang.String |
encode(long l)
|
static byte[] |
longToBytes(long l)
Converts a long to a (big-endian) array of bytes. |
static void |
main(java.lang.String[] argv)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public LongToBytes()
| Method Detail |
|---|
public static void main(java.lang.String[] argv)
public static byte[] longToBytes(long l)
public static long bytesToLong(byte[] bytes)
public static java.lang.String bytesToLongStrings(byte[] bytes)
encode(long)
to get the string representations.
It is assumed that the length of the byte array is a multiple of 8.
public static java.lang.String encode(long l)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||