public static byte [ ] bytes ( String s ) { try { return s . getBytes ( ENCODING ) ; } catch ( UnsupportedEncodingException e ) { log . error ( "UnsupportedEncodingException " , e ) ; throw new RuntimeException ( e ) ; } }
Gets UTF - 8 bytes from the string .