Package crawlercommons.sitemaps

Examples of crawlercommons.sitemaps.SiteMapParser


    List<String> links = new ArrayList<String>();
    int level = 1;

    try {
      crawlercommons.sitemaps.SiteMapParser parser = new SiteMapParser();
      AbstractSiteMap asm = parser.parseSiteMap(pageLoader.getContentType(), IOUtils.toByteArray(pageLoader.getStream()), new URL(currentUrlItem.getUrl()));

      if (asm.isIndex()) {
        // push all url with depth = 0
        level = 0;
        Collection<AbstractSiteMap> sm = ((SiteMapIndex)asm).getSitemaps();
View Full Code Here

TOP

Related Classes of crawlercommons.sitemaps.SiteMapParser

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.