public static void putString2bytes(byte[] destbytes,String srcString,int destOffset,int srcOffset,int count){
  for (int i=0; i < count; i++) {
    destbytes[count + i]=srcString.getBytes()[i];
  }
}

public static void putString2bytes ( byte [ ] destbytes , String srcString , int destOffset , int srcOffset , int count ) { for ( int i = 0 ; i < count ; i ++ ) { destbytes [ count + i ] = srcString . getBytes ( ) [ i ] ; } }
put string to byte [ ]
