Rjb and raw data; variable length argument list

Hi list,

Someone familiar with rjb? How could I use a java.io.Reader from the ruby side? Its #read method can provide data into a char[] array. I managed to call it without errors by passing a ruby array pre-filled with numerics, but nothing is returned. While using the same object from java does yield data. What may I be doing wrong?

On a related note, it'd be ideal to wrap this object into something that is a fully functional ruby IO. Is there such a class? In java I used a BufferedReader.

thx
mortee