2003-02-11 Michael Koch <konqueror@gmx.de>
* java/nio/Buffer.java (cap, lim, pos, mark): Made private (Buffer): Added package private constructor. * java/nio/ByteBuffer.java (ByteBuffer): Implements Cloneable. (offset): New member variable. (readOnly): New member variable. (backing_buffer): New member variable. (allocateDirect): Throw exception and tell that direct buffers are not supported yet, documentation added. (allocate): Documentation added. (wrap): Documentation added. (ByteBuffer): New constructor. (hasArray): New method. (array): New method. (arrayOffset): New method. (get): Documentation added. (put): Documentation added. * java/nio/CharBuffer.java (CharBuffer): New constructor. (compareTo): Don't access member variables of Buffer directly. * java/nio/DoubleBuffer.java (allocateDirect): Throw exception and tell that direct buffers are not supported yet. * java/nio/FloatBuffer.java (allocateDirect): Throw exception and tell that direct buffers are not supported yet. * java/nio/IntBuffer.java (allocateDirect): Throw exception and tell that direct buffers are not supported yet. * java/nio/LongBuffer.java (allocateDirect): Throw exception and tell that direct buffers are not supported yet. * java/nio/MappedByteBuffer.java (MappedByteBuffer): New method. (force): New method. (isLoaded): New method. (load): New method. * java/nio/ShortBuffer.java (allocateDirect): Throw exception and tell that direct buffers are not supported yet. From-SVN: r62685
This commit is contained in:
parent
c0da264129
commit
d19e783c45
9 changed files with 201 additions and 16 deletions
|
@ -88,6 +88,11 @@ public abstract class CharBuffer extends Buffer
|
|||
{
|
||||
return wrap (array, 0, array.length);
|
||||
}
|
||||
|
||||
CharBuffer (int cap, int lim, int pos, int mark)
|
||||
{
|
||||
super (cap, lim, pos, mark);
|
||||
}
|
||||
|
||||
/**
|
||||
* @exception BufferUnderflowException FIXME
|
||||
|
@ -197,8 +202,8 @@ public abstract class CharBuffer extends Buffer
|
|||
return 1;
|
||||
|
||||
int r = remaining ();
|
||||
int i1 = pos;
|
||||
int i2 = a.pos;
|
||||
int i1 = position ();
|
||||
int i2 = a.position ();
|
||||
|
||||
for (int i = 0; i < r; i++)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue