private void parseAndAdd(String line){
  StringTokenizer tokenizer=new StringTokenizer(line," ");
  try {
    String phoneme=tokenizer.nextToken();
    String feature=tokenizer.nextToken();
    String value=tokenizer.nextToken();
    phonesetMap.put(getKey(phoneme,feature),value);
  }
 catch (  NoSuchElementException nse) {
    throw new Error("part of speech data in bad format at line " + lineCount);
  }
}

private void parseAndAdd ( String line ) { StringTokenizer tokenizer = new StringTokenizer ( line , " " ) ; try { String phoneme = tokenizer . nextToken ( ) ; String feature = tokenizer . nextToken ( ) ; String value = tokenizer . nextToken ( ) ; phonesetMap . put ( getKey ( phoneme , feature ) , value ) ; } catch ( NoSuchElementException nse ) { throw new Error ( "part of speech data in bad format at line " + lineCount ) ; } }
creates a word from the given input line and add it to the map .
