From 7801fed43de9df48ec81760a5fb20f54436d165f Mon Sep 17 00:00:00 2001 From: Ito Kazumitsu Date: Thu, 17 Feb 2005 19:51:25 +0000 Subject: FileChannelImpl.java (write(ByteBuffer)): Move the position of the source buffer forward. 2005-02-17 Ito Kazumitsu * gnu/java/nio/channels/FileChannelImpl.java (write(ByteBuffer)): Move the position of the source buffer forward. From-SVN: r95184 --- libjava/gnu/java/nio/channels/FileChannelImpl.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'libjava/gnu/java') 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 { -- cgit v1.1