public String getHexEncodedBytes ( ) { buffer . b ( ) . flip ( ) ; byte bytes [ ] = new byte [ buffer . b ( ) . remaining ( ) ] ; buffer . b ( ) . get ( bytes ) ; String hex = Encoder . hexEncode ( bytes ) ; buffer . discard ( ) ; return hex ; }
Get a ascii - string - safe version of the binary value using a hex encoding .