protected SiteMap processText(String sitemapUrl,byte[] content) throws IOException {
  LOG.debug("Processing textual Sitemap");
  SiteMap textSiteMap=new SiteMap(sitemapUrl);
  textSiteMap.setType(SitemapType.TEXT);
  BOMInputStream bomIs=new BOMInputStream(new ByteArrayInputStream(content));
  @SuppressWarnings("resource") BufferedReader reader=new BufferedReader(new InputStreamReader(bomIs,"UTF-8"));
  String line;
  int i=1;
  while ((line=reader.readLine()) != null) {
    if (line.length() > 0 && i <= MAX_URLS) {
      addUrlIntoSitemap(line,textSiteMap,null,null,null,i++);
    }
  }
  textSiteMap.setProcessed(true);
  return textSiteMap;
}

protected SiteMap processText ( String sitemapUrl , byte [ ] content ) throws IOException { LOG . debug ( "Processing textual Sitemap" ) ; SiteMap textSiteMap = new SiteMap ( sitemapUrl ) ; textSiteMap . setType ( SitemapType . TEXT ) ; BOMInputStream bomIs = new BOMInputStream ( new ByteArrayInputStream ( content ) ) ; @ SuppressWarnings ( "resource" ) BufferedReader reader = new BufferedReader ( new InputStreamReader ( bomIs , "UTF-8" ) ) ; String line ; int i = 1 ; while ( ( line = reader . readLine ( ) ) != null ) { if ( line . length ( ) > 0 && i <= MAX_URLS ) { addUrlIntoSitemap ( line , textSiteMap , null , null , null , i ++ ) ; } } textSiteMap . setProcessed ( true ) ; return textSiteMap ; }
process a text - based sitemap . text sitemaps only list urls but no priorities , last mods , etc .
