|
GeoSoft API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Object | +--ByteSwapper
Utility class for doing byte swapping (i.e. conversion between little-endian and big-endian representations) of different data types. Byte swapping is typically used when data is read from a stream delivered by a system of different endian type as the present one.
Constructor Summary | |
ByteSwapper()
|
Method Summary | |
static double |
swap(double value)
Byte swap a single double value. |
static void |
swap(double[] array)
Byte swap an array of doubles. |
static float |
swap(float value)
Byte swap a single float value. |
static void |
swap(float[] array)
Byte swap an array of floats. |
static int |
swap(int value)
Byte swap a single int value. |
static void |
swap(int[] array)
Byte swap an array of ints. |
static long |
swap(long value)
Byte swap a single long value. |
static void |
swap(long[] array)
Byte swap an array of longs. |
static short |
swap(short value)
Byte swap a single short value. |
static void |
swap(short[] array)
Byte swap an array of shorts. |
Methods inherited from class Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ByteSwapper()
Method Detail |
public static short swap(short value)
value
- Value to byte swap.
public static int swap(int value)
value
- Value to byte swap.
public static long swap(long value)
value
- Value to byte swap.
public static float swap(float value)
value
- Value to byte swap.
public static double swap(double value)
value
- Value to byte swap.
public static void swap(short[] array)
array
- Array of values to swappublic static void swap(int[] array)
array
- Array of values to swappublic static void swap(long[] array)
array
- Array of values to swappublic static void swap(float[] array)
array
- Array of values to swappublic static void swap(double[] array)
array
- Array of values to swap
|
GeoSoft API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |