public StrTokenizer reset(String input){
  reset();
  if (input != null) {
    this.chars=input.toCharArray();
  }
 else {
    this.chars=null;
  }
  return this;
}

public StrTokenizer reset ( String input ) { reset ( ) ; if ( input != null ) { this . chars = input . toCharArray ( ) ; } else { this . chars = null ; } return this ; }
zkrestore this tokenizer , giving it a new input string to parse . in this manner you can re - use a tokenizer with the same settings on multiple input lines .
