use  java.nio.ByteBuffer