From cc8dd6d8c031261ef00cd8d0f4c108da79d275c9 Mon Sep 17 00:00:00 2001 From: Eric Scharff Date: Fri, 28 Sep 2007 12:18:01 -0600 Subject: [PATCH] Implemented ByteBuffer.flip() --- classpath/java/nio/ByteBuffer.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/classpath/java/nio/ByteBuffer.java b/classpath/java/nio/ByteBuffer.java index 79517343ab..1b72d70b2a 100644 --- a/classpath/java/nio/ByteBuffer.java +++ b/classpath/java/nio/ByteBuffer.java @@ -134,6 +134,8 @@ public class ByteBuffer { } public ByteBuffer flip() { + limit = position; + position = 0; return this; }