public static byte [ ] asciiBytes ( String value ) { Preconditions . checkNotNull ( value ) ; try { return value . getBytes ( "ASCII" ) ; } catch ( UnsupportedEncodingException uee ) { // won't happen throw new RuntimeException ( "ASCII not found!" , uee ) ; } }
Helper method that transforms provided string into it s byte representation using ASCII encoding .