public static byte [ ] toSimpleByteArray ( CharSequence charSequence ) { byte [ ] barr = new byte [ charSequence . length ( ) ] ; for ( int i = 0 ; i < barr . length ; i ++ ) { barr [ i ] = ( byte ) charSequence . charAt ( i ) ; } return barr ; }
Converts char sequence into byte array .