public ByteBuffer readBuffer ( final int byteLen ) { final byte [ ] data = new byte [ byteLen ] ; buffer . get ( data ) ; return ByteBuffer . wrap ( data ) ; }
Create a copy of the first byteLen bytes of the underlying buffer .