java.nio
Class ByteOrder

java.lang.Object
  extended by java.nio.ByteOrder

public final class ByteOrder
extends Object

Since:
1.4

Field Summary
static ByteOrder BIG_ENDIAN
          Constant indicating big endian byte order.
static ByteOrder LITTLE_ENDIAN
          Constant indicating little endian byte order.
 
Method Summary
static ByteOrder nativeOrder()
          Returns the native byte order of the platform currently running.
 String toString()
          Returns a string representation of the byte order.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

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.

Overrides:
toString in class Object
Returns:
the string
See Also:
Object.getClass(), Object.hashCode(), Class.getName(), Integer.toHexString(int)