public final class

ByteOrder

extends Object
java.lang.Object
   ↳java.nio.ByteOrder

Class Overview

Defines byte order constants.

Summary

Constants
ByteOrderBIG_ENDIANThis constant represents big endian.
ByteOrderLITTLE_ENDIANThis constant represents little endian.
Public Methods
static ByteOrder nativeOrder()
Returns the current platform byte order.
String toString()
Returns a string that describes this object.
[Expand]
Inherited Methods
From class java.lang.Object

Constants

public static final ByteOrder BIG_ENDIAN

Since: API Level 1

This constant represents big endian.

public static final ByteOrder LITTLE_ENDIAN

Since: API Level 1

This constant represents little endian.

Public Methods

public static ByteOrder nativeOrder ()

Since: API Level 1

Returns the current platform byte order.

Returns
  • the byte order object, which is either LITTLE_ENDIAN or BIG_ENDIAN.

public String toString ()

Since: API Level 1

Returns a string that describes this object.

Returns