public LanguageSetting(Option opt){
  elem=null;
  name=opt.getLanguage();
  String[] suffixArray=opt.getSuffixes();
  StringBuffer strbuf=new StringBuffer();
  for (int i=0; i < suffixArray.length; i++) {
    strbuf.append(suffixArray[i]);
    if (i != suffixArray.length - 1)     strbuf.append(',');
  }
  this.suffixes=strbuf.toString();
  minMatchLen=opt.getMinimumMatchLength();
  clusterType=opt.getClustertype();
  readSubdirs=opt.isReadSubdirs();
  storeMatches=opt.getStoreMatches();
}

public LanguageSetting ( Option opt ) { elem = null ; name = opt . getLanguage ( ) ; String [ ] suffixArray = opt . getSuffixes ( ) ; StringBuffer strbuf = new StringBuffer ( ) ; for ( int i = 0 ; i < suffixArray . length ; i ++ ) { strbuf . append ( suffixArray [ i ] ) ; if ( i != suffixArray . length - 1 ) strbuf . append ( ',' ) ; } this . suffixes = strbuf . toString ( ) ; minMatchLen = opt . getMinimumMatchLength ( ) ; clusterType = opt . getClustertype ( ) ; readSubdirs = opt . isReadSubdirs ( ) ; storeMatches = opt . getStoreMatches ( ) ; }
constructs an element - less languagesetting object out of a option object . the set methods may not be used for the resulting object !
