Fixed a bug: NETTY-129 CompositeChannelBuffer.getBytes(offset, GatheringByteChannel, length) doesn't respect offset and length parameter

This commit is contained in:
Trustin Lee 2009-03-04 13:43:56 +00:00
parent cd3859b002
commit 35ac9ef38e

View File

@ -220,7 +220,7 @@ public class CompositeChannelBuffer extends AbstractChannelBuffer {
throws IOException {
// XXX Gathering write is not supported because of a known issue.
// See http://bugs.sun.com/view_bug.do?bug_id=6210541
return out.write(toByteBuffer());
return out.write(toByteBuffer(index, length));
}
public void getBytes(int index, OutputStream out, int length)