aboutsummaryrefslogtreecommitdiff
path: root/libjava/java/nio/CharBuffer.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/CharBuffer.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/CharBuffer.java')
-rw-r--r--libjava/java/nio/CharBuffer.java3
1 files changed, 3 insertions, 0 deletions
diff --git a/libjava/java/nio/CharBuffer.java b/libjava/java/nio/CharBuffer.java
index e5b31b4..e2f8d5e 100644
--- a/libjava/java/nio/CharBuffer.java
+++ b/libjava/java/nio/CharBuffer.java
@@ -83,6 +83,9 @@ public abstract class CharBuffer extends Buffer
*/
final public static CharBuffer wrap (CharSequence a, int offset, int length)
{
+ // FIXME: implement better handling of java.lang.String.
+ // Probably share data with String via reflection.
+
if ((offset < 0)
|| (offset > a.length ())
|| (length < 0)