| |
|
| java.lang.Object java.nio.ByteOrder
ByteOrder | final public class ByteOrder (Code) | | A typesafe enumeration for byte orders.
author: Mark Reinhold author: JSR-51 Expert Group version: 1.20, 07/05/05 since: 1.4 |
Method Summary | |
public static ByteOrder | nativeOrder() Retrieves the native byte order of the underlying platform.
This method is defined so that performance-sensitive Java code can
allocate direct buffers with the same byte order as the hardware.
Native code libraries are often more efficient when such buffers are
used. | public String | toString() Constructs a string describing this object. |
BIG_ENDIAN | final public static ByteOrder BIG_ENDIAN(Code) | | Constant denoting big-endian byte order. In this order, the bytes of a
multibyte value are ordered from most significant to least significant.
|
LITTLE_ENDIAN | final public static ByteOrder LITTLE_ENDIAN(Code) | | Constant denoting little-endian byte order. In this order, the bytes of
a multibyte value are ordered from least significant to most
significant.
|
nativeOrder | public static ByteOrder nativeOrder()(Code) | | Retrieves the native byte order of the underlying platform.
This method is defined so that performance-sensitive Java code can
allocate direct buffers with the same byte order as the hardware.
Native code libraries are often more efficient when such buffers are
used.
The native byte order of the hardware upon which this Javavirtual machine is running |
|
|
|