[Java] Use new versions get and put bytes methods on direct buffers.