Commit 8c9c9dfb by Michael Koch Committed by Michael Koch

2003-02-13 Michael Koch <konqueror@gmx.de>

	* java/nio/ByteBuffer.java
	(endian): New member variable.
	(get): New methods.
	(equals): New method.
	(compareTo): New method.
	(order): New methods.
	(compact): New method.
	(isDirect): New method.
	(slice): New method.
	(duplicate): New method.
	(asReadOnlyBuffer): New method.
	(asCharBuffer): New method.
	(asDoubleBuffer): New method.
	(asFloatBuffer): New method.
	(asIntBuffer): New method.
	(asLongBuffer): New method.
	(asShortBuffer): New method.
	(get*): New methods.
	(put*): New methods.
	(toString): New method.
	* java/nio/CharBuffer.java
	(CharBuffer): Implement Comparable instead of Cloneable.
	(get): May not be final.
	(put): May not be final.

From-SVN: r62836
parent 4cce66c3
2003-02-13 Michael Koch <konqueror@gmx.de>
* java/nio/ByteBuffer.java
(endian): New member variable.
(get): New methods.
(equals): New method.
(compareTo): New method.
(order): New methods.
(compact): New method.
(isDirect): New method.
(slice): New method.
(duplicate): New method.
(asReadOnlyBuffer): New method.
(asCharBuffer): New method.
(asDoubleBuffer): New method.
(asFloatBuffer): New method.
(asIntBuffer): New method.
(asLongBuffer): New method.
(asShortBuffer): New method.
(get*): New methods.
(put*): New methods.
(toString): New method.
* java/nio/CharBuffer.java
(CharBuffer): Implement Comparable instead of Cloneable.
(get): May not be final.
(put): May not be final.
2002-02-13 Ranjit Mathew <rmathew@hotmail.com> 2002-02-13 Ranjit Mathew <rmathew@hotmail.com>
* gnu/gcj/runtime/NameFinder.java (createStackTraceElement): Use * gnu/gcj/runtime/NameFinder.java (createStackTraceElement): Use
......
...@@ -43,7 +43,7 @@ import gnu.java.nio.CharBufferImpl; ...@@ -43,7 +43,7 @@ import gnu.java.nio.CharBufferImpl;
* @since 1.4 * @since 1.4
*/ */
public abstract class CharBuffer extends Buffer public abstract class CharBuffer extends Buffer
implements Cloneable, CharSequence implements Comparable, CharSequence
{ {
protected char [] backing_buffer; protected char [] backing_buffer;
...@@ -119,7 +119,7 @@ public abstract class CharBuffer extends Buffer ...@@ -119,7 +119,7 @@ public abstract class CharBuffer extends Buffer
* @exception IndexOutOfBoundsException If the preconditions on the offset * @exception IndexOutOfBoundsException If the preconditions on the offset
* and length parameters do not hold * and length parameters do not hold
*/ */
final public CharBuffer get (char[] dst, int offset, int length) public CharBuffer get (char[] dst, int offset, int length)
{ {
for (int i = offset; i < offset + length; i++) for (int i = offset; i < offset + length; i++)
{ {
...@@ -135,7 +135,7 @@ public abstract class CharBuffer extends Buffer ...@@ -135,7 +135,7 @@ public abstract class CharBuffer extends Buffer
* @exception BufferUnderflowException If there are fewer than length * @exception BufferUnderflowException If there are fewer than length
* characters remaining in this buffer. * characters remaining in this buffer.
*/ */
final public CharBuffer get (char[] dst) public CharBuffer get (char[] dst)
{ {
return get (dst, 0, dst.length); return get (dst, 0, dst.length);
} }
...@@ -146,7 +146,7 @@ public abstract class CharBuffer extends Buffer ...@@ -146,7 +146,7 @@ public abstract class CharBuffer extends Buffer
* @exception IllegalArgumentException If the source buffer is this buffer. * @exception IllegalArgumentException If the source buffer is this buffer.
* @exception ReadOnlyBufferException If this buffer is read-only. * @exception ReadOnlyBufferException If this buffer is read-only.
*/ */
final public CharBuffer put (CharBuffer src) public CharBuffer put (CharBuffer src)
{ {
if (src == this) if (src == this)
throw new IllegalArgumentException (); throw new IllegalArgumentException ();
...@@ -168,7 +168,7 @@ public abstract class CharBuffer extends Buffer ...@@ -168,7 +168,7 @@ public abstract class CharBuffer extends Buffer
* and length parameters do not hold * and length parameters do not hold
* @exception ReadOnlyBufferException If this buffer is read-only. * @exception ReadOnlyBufferException If this buffer is read-only.
*/ */
final public CharBuffer put (char[] src, int offset, int length) public CharBuffer put (char[] src, int offset, int length)
{ {
if (offset < 0 if (offset < 0
|| offset >= src.length || offset >= src.length
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment