public final void read(final byte[] buffer) throws IOException {
  byteBuffer.get(buffer);
}

public final void read ( final byte [ ] buffer ) throws IOException { byteBuffer . get ( buffer ) ; }
read a byte array of the length of the buffer , and store it into it .
