aboutsummaryrefslogtreecommitdiff
path: root/libjava/java/nio/ByteBuffer.java
diff options
context:
space:
mode:
authorMichael Koch <konqueror@gmx.de>2003-05-02 05:35:57 +0000
committerMichael Koch <mkoch@gcc.gnu.org>2003-05-02 05:35:57 +0000
commit4b6eac52d5cddac6803e3bb762523da95f571bf6 (patch)
tree4aa891e39e8bfb18f8fb0e1d235f4f3bf97600d1 /libjava/java/nio/ByteBuffer.java
parentc67528fe19d425cf537589701f67218ff729130b (diff)
downloadgcc-4b6eac52d5cddac6803e3bb762523da95f571bf6.zip
gcc-4b6eac52d5cddac6803e3bb762523da95f571bf6.tar.gz
gcc-4b6eac52d5cddac6803e3bb762523da95f571bf6.tar.bz2
2003-05-02 Michael Koch <konqueror@gmx.de>
* gnu/java/nio/FileChannelImpl.java (read): New implementation. (implRead): New methods. (write): New implementation, call other write insteal of read method. (implWrite): New methods. (map): Added comment. (transferFrom): Implemented. (transferTo): Implemented. (lock): Added checks to throw exceptions. (truncate): Added check to throw exception. * gnu/java/nio/natFileChannelImpl.cc (implRead): New method. (implWrite): New method. * java/nio/ByteBuffer.java (hashCode): Fixed comment. (get): Fixed exception documentation. (put): Fixed exception documentation. * java/nio/CharBuffer.java: Added comment for later optimizations. From-SVN: r66373
Diffstat (limited to 'libjava/java/nio/ByteBuffer.java')
-rw-r--r--libjava/java/nio/ByteBuffer.java8
1 files changed, 5 insertions, 3 deletions
diff --git a/libjava/java/nio/ByteBuffer.java b/libjava/java/nio/ByteBuffer.java
index b3e72aa..5a687ca 100644
--- a/libjava/java/nio/ByteBuffer.java
+++ b/libjava/java/nio/ByteBuffer.java
@@ -251,7 +251,7 @@ public abstract class ByteBuffer extends Buffer implements Comparable
*/
public int hashCode()
{
- // FIXME: Check what SUN calcs here
+ // FIXME: Check what SUN calculates here
return super.hashCode();
}
@@ -344,7 +344,8 @@ public abstract class ByteBuffer extends Buffer implements Comparable
/**
* Absolute get method.
*
- * @exception IndexOutOfBoundsException FIXME
+ * @exception IndexOutOfBoundsException If index &lt; 0 or index &gt;= this
+ * buffers limit.
*/
public abstract byte get (int index);
@@ -352,7 +353,8 @@ public abstract class ByteBuffer extends Buffer implements Comparable
* Absolute put method.
*
* @exception ReadOnlyBufferException If this buffer is read-only
- * @exception IndexOutOfBoundsException FIXME
+ * @exception IndexOutOfBoundsException If index &lt; 0 or index &gt;= this
+ * buffers limit.
*/
public abstract ByteBuffer put (int index, byte b);