|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectsystem.HelperMethods
This class contains general methods for use in the program.
Constructor Summary | |
HelperMethods()
|
Method Summary | |
static long |
convertByteArrayToLong(byte[] unsignedintarray)
Converts a byte array standing for an unsigned int read from a file in Little Endian, into a Java long. |
static byte[] |
convertLongToByteArray(long javalong)
Converts a Java long into a byte aray standing for an unsigned int to be written to a file in Little Endian. |
static void |
reverseArray(byte[] array)
Reverses the given array. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public HelperMethods()
Method Detail |
public static long convertByteArrayToLong(byte[] unsignedintarray) throws IOException
unsignedintarray
- The byte array.
IOException
- When the stream stuff breaks.public static byte[] convertLongToByteArray(long javalong) throws IOException
javalong
- The long.
IOException
- When the stream stuff breaks.public static void reverseArray(byte[] array)
array
- The arrry to be reversed.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |