public static final byte [ ] toAsciiBytes ( final String value ) { byte [ ] result = new byte [ value . length ( ) ] ; for ( int i = 0 ; i < value . length ( ) ; i ++ ) { result [ i ] = ( byte ) value . charAt ( i ) ; } return result ; }
Convert specified String to a byte array .