public void read(final BufferedReader reader,final List<String> comments) throws IOException {
  while (true) {
    final String line=reader.readLine();
    if (line == null) {
      break;
    }
    if (line.startsWith("#")) {
      if (comments != null) {
        comments.add(line);
      }
    }
 else {
      final StringTokenizer tk=new StringTokenizer(line);
      if (!tk.hasMoreTokens()) {
        continue;
      }
      String key=tk.nextToken();
      key=trimWord(key);
      final WordEntry entry=new WordEntry();
      entry.setNormalized(key);
      readEntryLine(key,tk,entry);
      addEntry(key,entry);
    }
  }
}

public void read ( final BufferedReader reader , final List < String > comments ) throws IOException { while ( true ) { final String line = reader . readLine ( ) ; if ( line == null ) { break ; } if ( line . startsWith ( "#" ) ) { if ( comments != null ) { comments . add ( line ) ; } } else { final StringTokenizer tk = new StringTokenizer ( line ) ; if ( ! tk . hasMoreTokens ( ) ) { continue ; } String key = tk . nextToken ( ) ; key = trimWord ( key ) ; final WordEntry entry = new WordEntry ( ) ; entry . setNormalized ( key ) ; readEntryLine ( key , tk , entry ) ; addEntry ( key , entry ) ; } } }
reads word list from reader object .
