protected String nextType() throws IOException {
  String type=null;
  while (!done && type == null) {
    type=readWord(reader);
    if (type.length() < 1) {
      type=null;
      continue;
    }
  }
  return type;
}

protected String nextType ( ) throws IOException { String type = null ; while ( ! done && type == null ) { type = readWord ( reader ) ; if ( type . length ( ) < 1 ) { type = null ; continue ; } } return type ; }
returns the next type read from the reader given at init or null if no more types can be read
