示例#1
0
    public void addPage(final Page page) throws IOException, SAXException {
      if (currentSiteMapFile.getEntryCount() == 25000) {
        siteMaps.add(currentSiteMapFile);
        count += currentSiteMapFile.getEntryCount();
        currentSiteMapFile.finish();

        currentSiteMapFile = new SiteMapFile(siteMaps.size() + 1);
      }

      currentSiteMapFile.addPage(page);
    }
示例#2
0
 public void finish() throws IOException {
   siteMaps.add(currentSiteMapFile);
   count += currentSiteMapFile.getEntryCount();
   currentSiteMapFile.finish();
 }