protected void parseAndAdd(List list,String line){
  try {
    StringTokenizer tokenizer=new StringTokenizer(line," ");
    String feature=tokenizer.nextToken();
    float start=Float.parseFloat(tokenizer.nextToken());
    float mid=Float.parseFloat(tokenizer.nextToken());
    float end=Float.parseFloat(tokenizer.nextToken());
    String type=tokenizer.nextToken();
    if (type.equals("null")) {
      type=null;
    }
    list.add(new F0ModelTerm(feature,start,mid,end,type));
  }
 catch (  NoSuchElementException nsee) {
    throw new Error("ContourGenerator: Error while parsing F0ModelTerm " + nsee.getMessage());
  }
catch (  NumberFormatException nfe) {
    throw new Error("ContourGenerator: Bad float format " + nfe.getMessage());
  }
}

protected void parseAndAdd ( List list , String line ) { try { StringTokenizer tokenizer = new StringTokenizer ( line , " " ) ; String feature = tokenizer . nextToken ( ) ; float start = Float . parseFloat ( tokenizer . nextToken ( ) ) ; float mid = Float . parseFloat ( tokenizer . nextToken ( ) ) ; float end = Float . parseFloat ( tokenizer . nextToken ( ) ) ; String type = tokenizer . nextToken ( ) ; if ( type . equals ( "null" ) ) { type = null ; } list . add ( new F0ModelTerm ( feature , start , mid , end , type ) ) ; } catch ( NoSuchElementException nsee ) { throw new Error ( "ContourGenerator: Error while parsing F0ModelTerm " + nsee . getMessage ( ) ) ; } catch ( NumberFormatException nfe ) { throw new Error ( "ContourGenerator: Bad float format " + nfe . getMessage ( ) ) ; } }
parses the line into an f0modelterm .
