public static Map<String,Page> loadPages(String folderPath){
  Map<String,Page> pageTable=new Hashtable<String,Page>();
  Page currPage;
  File[] listOfFiles;
  wlf=new WikiLinkFinder();
  File folder=new File(folderPath);
  if (folder.exists() && folder.isDirectory()) {
    listOfFiles=folder.listFiles();
  }
 else {
    return null;
  }
  for (int i=0; i < listOfFiles.length; i++) {
    File currFile=listOfFiles[i];
    if (currFile.isFile()) {
      currPage=wikiPageFromFile(folder,currFile);
      pageTable.put(currPage.getLocation(),currPage);
    }
  }
  return pageTable=determineAllInlinks(pageTable);
}

public static Map < String , Page > loadPages ( String folderPath ) { Map < String , Page > pageTable = new Hashtable < String , Page > ( ) ; Page currPage ; File [ ] listOfFiles ; wlf = new WikiLinkFinder ( ) ; File folder = new File ( folderPath ) ; if ( folder . exists ( ) && folder . isDirectory ( ) ) { listOfFiles = folder . listFiles ( ) ; } else { return null ; } for ( int i = 0 ; i < listOfFiles . length ; i ++ ) { File currFile = listOfFiles [ i ] ; if ( currFile . isFile ( ) ) { currPage = wikiPageFromFile ( folder , currFile ) ; pageTable . put ( currPage . getLocation ( ) , currPage ) ; } } return pageTable = determineAllInlinks ( pageTable ) ; }
access a folder of . txt files containing wikipedia html source , and give back a hashtable of pages , which each page having it ' s correct inlink list and outlink list .
