java.nio

Class ByteOrder

public final class ByteOrder extends Object

Since: 1.4

Field Summary
static ByteOrderBIG_ENDIAN
Constant indicating big endian byte order.
static ByteOrderLITTLE_ENDIAN
Constant indicating little endian byte order.
Method Summary
static ByteOrdernativeOrder()
Returns the native byte order of the platform currently running.
StringtoString()
Returns a string representation of the byte order.

Field Detail

BIG_ENDIAN

public static final ByteOrder BIG_ENDIAN
Constant indicating big endian byte order.

LITTLE_ENDIAN

public static final ByteOrder LITTLE_ENDIAN
Constant indicating little endian byte order.

Method Detail

nativeOrder

public static ByteOrder nativeOrder()
Returns the native byte order of the platform currently running.

Returns: the native byte order

toString

public String toString()
Returns a string representation of the byte order.

Returns: the string