|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sun.j3d.internal.BufferWrapper
public abstract class BufferWrapper
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.
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 int |
TYPE_BYTE
Value returned from getBufferType(), this indicates that the BufferWrapper contains a java.nio.ByteBuffer. |
static int |
TYPE_DOUBLE
Value returned from getBufferType(), this indicates that the BufferWrapper contains a java.nio.DoubleBuffer. |
static int |
TYPE_FLOAT
Value returned from getBufferType(), this indicates that the BufferWrapper contains a java.nio.FloatBuffer. |
static int |
TYPE_NULL
Value returned from getBufferType(), this indicates that the BufferWrapper contains a null buffer. |
static int |
TYPE_UNKNOWN
Value returned from getBufferType(), this indicates that the BufferWrapper does not hold data of type byte, float, or double. |
Constructor Summary | |
---|---|
BufferWrapper()
Never used - this class is abstract. |
Method Summary | |
---|---|
int |
capacity()
|
java.lang.Object |
getBufferAsObject()
|
static int |
getBufferType(javax.media.j3d.J3DBuffer b)
|
int |
limit()
|
int |
position()
|
BufferWrapper |
position(int newPosition)
Sets this buffer's position. |
BufferWrapper |
rewind()
Resets this buffer's position to the previously marked position. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int TYPE_NULL
public static final int TYPE_UNKNOWN
public static final int TYPE_BYTE
public static final int TYPE_FLOAT
public static final int TYPE_DOUBLE
Constructor Detail |
---|
public BufferWrapper()
Method Detail |
---|
public java.lang.Object getBufferAsObject()
public int capacity()
ByteBufferWrapper.allocateDirect(int)
public int limit()
public int position()
public BufferWrapper position(int newPosition)
public BufferWrapper rewind()
public static int getBufferType(javax.media.j3d.J3DBuffer b)
TYPE_NULL
,
TYPE_BYTE
,
TYPE_FLOAT
,
TYPE_DOUBLE
,
TYPE_UNKNOWN
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |