private ArrayList<URLCrawlDatum> readContents(Path fetchlist) throws IOException {
  SequenceFile.Reader reader=new SequenceFile.Reader(fs,fetchlist,conf);
  ArrayList<URLCrawlDatum> l=new ArrayList<URLCrawlDatum>();
  READ:   do {
    Text key=new Text();
    CrawlDatum value=new CrawlDatum();
    if (!reader.next(key,value)) {
      break READ;
    }
    l.add(new URLCrawlDatum(key,value));
  }
 while (true);
  reader.close();
  return l;
}

private ArrayList < URLCrawlDatum > readContents ( Path fetchlist ) throws IOException { SequenceFile . Reader reader = new SequenceFile . Reader ( fs , fetchlist , conf ) ; ArrayList < URLCrawlDatum > l = new ArrayList < URLCrawlDatum > ( ) ; READ : do { Text key = new Text ( ) ; CrawlDatum value = new CrawlDatum ( ) ; if ( ! reader . next ( key , value ) ) { break READ ; } l . add ( new URLCrawlDatum ( key , value ) ) ; } while ( true ) ; reader . close ( ) ; return l ; }
read contents of fetchlist .
