puma/puma — pull request #132 by ahamid (2012-08-12 04:48:44+00:00)
Title: updated IOBuffer impl to use native Java ByteArrayOutputStream; added test

Re:

> Evan Phoenix ‏@evanphx
Puma users on JRuby! Help me write a Java version of https://github.com/puma/puma/blob/just-dash-w/ext/puma_http11/io_buffer.c!

Hey, here is a simple implementation backed by a Java ByteArrayOutputStream - the traditional Java data structure for an auto-growing sink for byte IO. From the JDK source I'm looking at ByteArrayOutputStream is hardcoded to grow by a factor of 2, so YMMV, but that's a given anyway.