public final 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;
}

public final 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 .
