private static void generateDataFile(String datafile,String rule,String builder){
  RuleBasedBreakIteratorBuilder bld;
  if (builder.equals("RuleBasedBreakIterator")) {
    bld=new RuleBasedBreakIteratorBuilder(rule);
  }
 else   if (builder.equals("DictionaryBasedBreakIterator")) {
    bld=new DictionaryBasedBreakIteratorBuilder(rule);
  }
 else {
    throw new IllegalArgumentException("Invalid break iterator class \"" + builder + "\"");
  }
  bld.makeFile(datafile);
}

private static void generateDataFile ( String datafile , String rule , String builder ) { RuleBasedBreakIteratorBuilder bld ; if ( builder . equals ( "RuleBasedBreakIterator" ) ) { bld = new RuleBasedBreakIteratorBuilder ( rule ) ; } else if ( builder . equals ( "DictionaryBasedBreakIterator" ) ) { bld = new DictionaryBasedBreakIteratorBuilder ( rule ) ; } else { throw new IllegalArgumentException ( "Invalid break iterator class \"" + builder + "\"" ) ; } bld . makeFile ( datafile ) ; }
generate a data file for break - iterator
