From 74235ea33ca874744cbbe16b17577421d0412014 Mon Sep 17 00:00:00 2001 From: Joel Dice Date: Tue, 27 Nov 2007 10:30:55 -0700 Subject: [PATCH] add ByteArrayOutputStream.size() --- classpath/java/io/ByteArrayOutputStream.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/classpath/java/io/ByteArrayOutputStream.java b/classpath/java/io/ByteArrayOutputStream.java index 4ac99e263b..3f6d3fdc0f 100644 --- a/classpath/java/io/ByteArrayOutputStream.java +++ b/classpath/java/io/ByteArrayOutputStream.java @@ -14,6 +14,10 @@ public class ByteArrayOutputStream extends OutputStream { this(0); } + public int size() { + return position; + } + public void write(int c) { if (buffer == null) { buffer = new byte[BufferSize];