Пример #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();
 }