to top
Android APIs
public final class

ByteOrder

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

Class Overview

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.
[Expand]
Inherited Methods
From class java.lang.Object

Fields

public static final ByteOrder BIG_ENDIAN

Added in API level 1

This constant represents big endian.

public static final ByteOrder LITTLE_ENDIAN

Added in API level 1

This constant represents little endian.

Public Methods

public static ByteOrder nativeOrder ()

Added in 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 ()

Added in API level 1

Returns a string that describes this object.

Returns
No examples for this method.
Frequently called with: [Clear]
Portions of this page are reproduced from work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License. The original page is available here.