public Builder withTokenizer(String name,Map<String,String> params) throws IOException {
  Objects.requireNonNull(name,"Tokenizer name may not be null");
  tokenizer.set(applyResourceLoader(TokenizerFactory.forName(name,applyDefaultParams(params))));
  componentsAdded=true;
  return this;
}

public Builder withTokenizer ( String name , Map < String , String > params ) throws IOException { Objects . requireNonNull ( name , "Tokenizer name may not be null" ) ; tokenizer . set ( applyResourceLoader ( TokenizerFactory . forName ( name , applyDefaultParams ( params ) ) ) ) ; componentsAdded = true ; return this ; }
uses the given tokenizer .
