FileChannelImpl.java (write(ByteBuffer)): Move the position of the source buffer...
authorIto Kazumitsu <kaz@maczuka.gcd.org>
Thu, 17 Feb 2005 19:51:25 +0000 (19:51 +0000)
committerMichael Koch <mkoch@gcc.gnu.org>
Thu, 17 Feb 2005 19:51:25 +0000 (19:51 +0000)
2005-02-17  Ito Kazumitsu  <kaz@maczuka.gcd.org>

* gnu/java/nio/channels/FileChannelImpl.java (write(ByteBuffer)):
Move the position of the source buffer forward.

From-SVN: r95184

libjava/ChangeLog
libjava/gnu/java/nio/channels/FileChannelImpl.java

index 49a0b6e4f29bcf5c788efae2df838f4710add755..cb0e02463e2403ce43cc6632836079aebf91e38f 100644 (file)
@@ -1,3 +1,8 @@
+2005-02-17  Ito Kazumitsu  <kaz@maczuka.gcd.org>
+
+       * gnu/java/nio/channels/FileChannelImpl.java (write(ByteBuffer)):
+       Move the position of the source buffer forward.
+
 2005-02-17  Tom Tromey  <tromey@redhat.com>
 
        * java/lang/Class.h (_Jv_GetMethodString): Updated declaration.
index 678e10f23495808c9ca5d425e6cf736e648aaf93..887d1dcc3961e2a008ceb3ddd7beabdc31875e43 100644 (file)
@@ -1,5 +1,5 @@
 /* FileChannelImpl.java -- 
-   Copyright (C) 2002, 2004 Free Software Foundation, Inc.
+   Copyright (C) 2002, 2004, 2005  Free Software Foundation, Inc.
 
 This file is part of GNU Classpath.
 
@@ -192,6 +192,7 @@ public final class FileChannelImpl extends FileChannel
       {
        byte[] buffer = src.array();
        write(buffer, src.arrayOffset() + src.position(), len);
+       src.position(src.position() + len);
       }
     else
       {