Skip to content

Most visited

Recently visited

navigation
Added in API level 1

ByteOrder

public final class ByteOrder
extends Object

java.lang.Object
   ↳ java.nio.ByteOrder


Defines byte order constants.

Summary

Fields

public static final ByteOrder BIG_ENDIAN

This constant represents big endian.

public static final ByteOrder LITTLE_ENDIAN

This constant represents little endian.

Public methods

static ByteOrder nativeOrder()

Returns the current platform byte order.

String toString()

Returns a string that describes this object.

Inherited methods

From class java.lang.Object

Fields

BIG_ENDIAN

Added in API level 1
ByteOrder BIG_ENDIAN

This constant represents big endian.

LITTLE_ENDIAN

Added in API level 1
ByteOrder LITTLE_ENDIAN

This constant represents little endian.

Public methods

nativeOrder

Added in API level 1
ByteOrder nativeOrder ()

Returns the current platform byte order.

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

toString

Added in API level 1
String toString ()

Returns a string that describes this object.

Returns
String "BIG_ENDIAN" for ByteOrder.BIG_ENDIAN objects, "LITTLE_ENDIAN" for ByteOrder.LITTLE_ENDIAN objects.
This site uses cookies to store your preferences for site-specific language and display options.

Hooray!

This class requires API level or higher

This doc is hidden because your selected API level for the documentation is . You can change the documentation API level with the selector above the left navigation.

For more information about specifying the API level your app requires, read Supporting Different Platform Versions.