Posted By: arton Tajima
Date: 2010-11-22 08:20
Summary: Rjb-1.3.4 was released
Project: Ruby Java Bridge
This release's main purpose is argument conversion enhancement for buffers usage..
I add the argument conversion between String and byte[] implicitly and bi-directionally.
ex)
BAIS = Rjb::import('java.io.ByteArrayInputStream')
ba = BAIS.new("\0\x01\x02\x03")
buff = ' '
len = ba.read(buff)
ba.close
p len # => 4
p buff[0, len] # => "\000\001\002\003"
|
|