|
JAPI 0_6-alpha-2 Yet another Java API API Documentation |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sf.japi.util.EndianConverter
public class EndianConverter
Class to convert data from little endian to big endian and vice versa. Since the conversion is symmetric, there are no special conversion methods, just generic ones, e.g. the same method is used to convert a little endian integer to a big endian integer and vice versa.
| Constructor Summary | |
|---|---|
EndianConverter()
|
|
| Method Summary | |
|---|---|
static boolean |
se(boolean b)
Convert a boolean. |
static byte |
se(byte b)
Convert a byte. |
static char |
se(char c)
Convert a char. |
static double |
se(double d)
Convert a double. |
static float |
se(float f)
Convert a float. |
static int |
se(int i)
Convert an int. |
static long |
se(long l)
Convert a long. |
static short |
se(short s)
Convert a short. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public EndianConverter()
| Method Detail |
|---|
public static final double se(double d)
d - double to convert
public static final float se(float f)
f - float to convert
public static final long se(long l)
l - long to convert
public static final int se(int i)
i - int to convert
public static final char se(char c)
c - char to convert
public static final short se(short s)
s - short to convert
public static final byte se(byte b)
b - byte to convert
public static final boolean se(boolean b)
b - boolean to convert
|
JAPI Yet another Java API API Documentation |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||