aboutsummaryrefslogtreecommitdiff
path: root/libjava/gnu/java/nio/channels
diff options
context:
space:
mode:
authorIto Kazumitsu <kaz@maczuka.gcd.org>2005-02-17 19:51:25 +0000
committerMichael Koch <mkoch@gcc.gnu.org>2005-02-17 19:51:25 +0000
commit7801fed43de9df48ec81760a5fb20f54436d165f (patch)
tree5bed176a4214fbab9ae896344151df1dca643fde /libjava/gnu/java/nio/channels
parentae54ec16cdaf815a4e416e8193dd9e645b73fdab (diff)
downloadgcc-7801fed43de9df48ec81760a5fb20f54436d165f.zip
gcc-7801fed43de9df48ec81760a5fb20f54436d165f.tar.gz
gcc-7801fed43de9df48ec81760a5fb20f54436d165f.tar.bz2
FileChannelImpl.java (write(ByteBuffer)): Move the position of the source buffer forward.
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
Diffstat (limited to 'libjava/gnu/java/nio/channels')
-rw-r--r--libjava/gnu/java/nio/channels/FileChannelImpl.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/libjava/gnu/java/nio/channels/FileChannelImpl.java b/libjava/gnu/java/nio/channels/FileChannelImpl.java
index 678e10f..887d1dc 100644
--- a/libjava/gnu/java/nio/channels/FileChannelImpl.java
+++ b/libjava/gnu/java/nio/channels/FileChannelImpl.java
@@ -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
{