6341887: Inflater can't handle ByteBuffer - first webrev
martin.kirst at s1998.tu-chemnitz.de
Sat Apr 14 01:28:25 PDT 2012
I'm interested in contribute some work to openJdk.
I found the Sun BUG:
6341887 "Inflater.setInput(), Inflater.inflate() can't handle ByteBuffer".
After digging a little in the mailing archives I found nothing.
I've coded the first step towards ByteBuffer support.
The webrev below supports ByteBuffer for Inflater's and Deflater's
Depending on your comments I would like to go the last step
later on. I've in mind, to implement ByteBuffer support for
input methods also, using the same approach like ByteBuffer uses.
When using direct ByteBuffer for input, you must also use it
for output. Same as ByteBuffer#hasArray(). So developers have
to use byte arrays or ByteBuffers, but not mixing them.
Feedback is welcome.
More information about the core-libs-dev