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];