How to create a ByteBuffer in Java