|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sf.image4j.io.EndianUtils
public class EndianUtils
Provides utility methods for endian conversions [big-endian to little-endian; little-endian to big-endian].
| Constructor Summary | |
|---|---|
EndianUtils()
|
|
| Method Summary | |
|---|---|
static double |
swapDouble(double value)
Reverses the byte order of the source double value |
static float |
swapFloat(float value)
Reverses the byte order of the source float value |
static int |
swapInteger(int value)
Reverses the byte order of the source int value |
static long |
swapLong(long value)
Reverses the byte order of the source long value |
static short |
swapShort(short value)
Reverses the byte order of the source short value |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public EndianUtils()
| Method Detail |
|---|
public static short swapShort(short value)
value - the source value
public static int swapInteger(int value)
value - the source value
public static long swapLong(long value)
value - the source value
public static float swapFloat(float value)
value - the source value
public static double swapDouble(double value)
value - the source value
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||