javax.media.ding3d.internal
Class ByteOrderWrapper

java.lang.Object
  extended by javax.media.ding3d.internal.ByteOrderWrapper

public final class ByteOrderWrapper
extends java.lang.Object

NIO Buffers are new in Java 1.4 but we need to run on 1.3 as well, so this class was created to hide the NIO classes from non-1.4 Java 3D users.

Typesafe enum for byte orders.

NOTE: We no longer need to support JDK 1.3 as of the Java 3D 1.3.2 community source release on java.net. We should be able to get rid of this class.


Field Summary
static ByteOrderWrapper BIG_ENDIAN
          Static initializer creates object of this type.
static ByteOrderWrapper LITTLE_ENDIAN
          Static initializer creates object of this type.
 
Method Summary
static ByteOrderWrapper nativeOrder()
          Returns the native byte order of the host system.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

BIG_ENDIAN

public static final ByteOrderWrapper BIG_ENDIAN
Static initializer creates object of this type.


LITTLE_ENDIAN

public static final ByteOrderWrapper LITTLE_ENDIAN
Static initializer creates object of this type.

Method Detail

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

nativeOrder

public static ByteOrderWrapper nativeOrder()
Returns the native byte order of the host system.