public final class ByteOrder extends Object
Modifier and Type | Field and Description |
---|---|
static ByteOrder |
BIG_ENDIAN
This constant represents big endian.
|
static ByteOrder |
LITTLE_ENDIAN
This constant represents little endian.
|
boolean |
needsSwap
This is the only thing that ByteOrder is really used for: to know whether we need to swap
bytes to get this order, given bytes in native order.
|
Modifier and Type | Method and Description |
---|---|
static ByteOrder |
nativeOrder()
Returns the current platform byte order.
|
String |
toString()
Returns a string that describes this object.
|
public static final ByteOrder BIG_ENDIAN
public static final ByteOrder LITTLE_ENDIAN
public final boolean needsSwap
public static ByteOrder nativeOrder()
public String toString()
toString
in class Object
ByteOrder.BIG_ENDIAN
objects, "LITTLE_ENDIAN" for
ByteOrder.LITTLE_ENDIAN
objects.