java::io::ByteOrder Class Reference

Inheritance diagram for java::io::ByteOrder:

Inheritance graph
java::lang::Object
[legend]
Collaboration diagram for java::io::ByteOrder:

Collaboration graph
java::lang::Objectjava::lang::Stringjava::lang::Interfacejava::lang::ObjectRefjava::lang::Comparable
[legend]

List of all members.


Detailed Description

A typesafe enumeration for byte orders.

Author:
Mark Reinhold

JSR-51 Expert Group

Version:
1.12, 03/01/23
Since:
1.4

Public Member Functions

 ByteOrder ()
virtual String toString () const
 Constructs a string describing this object.

Static Public Member Functions

static ByteOrdernativeOrder ()
 Retrieves the native byte order of the underlying platform.

Static Public Attributes

static ByteOrder BIG_ENDIAN
 Constant denoting big-endian byte order.
static ByteOrder LITTLE_ENDIAN
 Constant denoting little-endian byte order.

Constructor & Destructor Documentation

java::io::ByteOrder::ByteOrder (  ) 


Member Function Documentation

static ByteOrder& java::io::ByteOrder::nativeOrder (  )  [static]

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.

Returns:
The native byte order of the hardware upon which this Java virtual machine is running

virtual String java::io::ByteOrder::toString (  )  const [virtual]

Constructs a string describing this object.

This method returns the string "BIG_ENDIAN" for BIG_ENDIAN and "LITTLE_ENDIAN" for LITTLE_ENDIAN.

Returns:
The specified string

Reimplemented from java::lang::Object.


Member Data Documentation

ByteOrder java::io::ByteOrder::BIG_ENDIAN [static]

Constant denoting big-endian byte order.

In this order, the bytes of a multibyte value are ordered from most significant to least significant.

ByteOrder java::io::ByteOrder::LITTLE_ENDIAN [static]

Constant denoting little-endian byte order.

In this order, the bytes of a multibyte value are ordered from least significant to most significant.


The documentation for this class was generated from the following file:
Generated on Fri May 16 11:56:27 2008 for CrossPlatformJavaLikeC++API by  doxygen 1.5.3