com.sun.j3d.internal
Class ByteOrderWrapper

java.lang.Object
  extended by com.sun.j3d.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.
private  java.lang.String enum_name
           
static ByteOrderWrapper LITTLE_ENDIAN
          Static initializer creates object of this type.
 
Constructor Summary
private ByteOrderWrapper(java.lang.String name)
          Private constructor is only called from static initializers in this class.
 
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
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

enum_name

private final java.lang.String enum_name

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.

Constructor Detail

ByteOrderWrapper

private ByteOrderWrapper(java.lang.String name)
Private constructor is only called from static initializers in this class.

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.



Copyright 1996-2008 Sun Microsystems, Inc. All Rights Reserved. Use is subject to license terms.