public PartOfSpeechImpl(URL url,String defaultPartOfSpeech) throws IOException {
  BufferedReader reader;
  String line;
  partOfSpeechMap=new HashMap();
  this.defaultPartOfSpeech=defaultPartOfSpeech;
  reader=new BufferedReader(new InputStreamReader(Utilities.getInputStream(url)));
  line=reader.readLine();
  lineCount++;
  while (line != null) {
    if (!line.startsWith("***")) {
      parseAndAdd(line);
    }
    line=reader.readLine();
  }
  reader.close();
}

public PartOfSpeechImpl ( URL url , String defaultPartOfSpeech ) throws IOException { BufferedReader reader ; String line ; partOfSpeechMap = new HashMap ( ) ; this . defaultPartOfSpeech = defaultPartOfSpeech ; reader = new BufferedReader ( new InputStreamReader ( Utilities . getInputStream ( url ) ) ) ; line = reader . readLine ( ) ; lineCount ++ ; while ( line != null ) { if ( ! line . startsWith ( "***" ) ) { parseAndAdd ( line ) ; } line = reader . readLine ( ) ; } reader . close ( ) ; }
creates a new partofspeechimpl by reading from the given url .
