void readDictionary(String filename,String suffix,InputStream res) throws IOException {
  DictionaryNames nms=new DictionaryNames(filename,suffix);
  BufferedReader in=new BufferedReader(new InputStreamReader(res));
  String line;
  while ((line=in.readLine()) != null) {
    String[] terms=splitter.split(line);
    if (terms.length > maxPhraseLength)     continue;
    if (terms.length == 0)     continue;
    GazEntry ge=gaz.get(terms[0]);
    if (ge == null) {
      gaz.put(terms[0],new GazEntry(terms,1,nms));
    }
 else {
      ge.addChild(terms,1,nms);
    }
  }
  in.close();
}

void readDictionary ( String filename , String suffix , InputStream res ) throws IOException { DictionaryNames nms = new DictionaryNames ( filename , suffix ) ; BufferedReader in = new BufferedReader ( new InputStreamReader ( res ) ) ; String line ; while ( ( line = in . readLine ( ) ) != null ) { String [ ] terms = splitter . split ( line ) ; if ( terms . length > maxPhraseLength ) continue ; if ( terms . length == 0 ) continue ; GazEntry ge = gaz . get ( terms [ 0 ] ) ; if ( ge == null ) { gaz . put ( terms [ 0 ] , new GazEntry ( terms , 1 , nms ) ) ; } else { ge . addChild ( terms , 1 , nms ) ; } } in . close ( ) ; }
read the given dictionary file from the input stream .
