From a16a00a7fb953f00c95a74e9452630ccac2334d3 Mon Sep 17 00:00:00 2001 From: Joel Dice Date: Fri, 26 Sep 2008 15:29:38 -0600 Subject: [PATCH] implement ByteArrayOutputStream.reset --- classpath/java/io/ByteArrayOutputStream.java | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/classpath/java/io/ByteArrayOutputStream.java b/classpath/java/io/ByteArrayOutputStream.java index 78a54ad249..61fb51759e 100644 --- a/classpath/java/io/ByteArrayOutputStream.java +++ b/classpath/java/io/ByteArrayOutputStream.java @@ -24,6 +24,13 @@ public class ByteArrayOutputStream extends OutputStream { this(0); } + public void reset() { + chain = null; + length = 0; + buffer = null; + position = 0; + } + public int size() { return length; }