Loading src/main/java/com/redfin/sitemapgenerator/SitemapIndexGenerator.java +11 −3 Original line number Diff line number Diff line Loading @@ -187,6 +187,13 @@ public class SitemapIndexGenerator { * @param count the number of sitemaps (1-based) */ public SitemapIndexGenerator addUrls(String prefix, String suffix, int count) { if (count == 0) { try { addUrl(new URL(baseUrl, prefix + suffix)); } catch (MalformedURLException e) { throw new RuntimeException(e); } } else { for (int i = 1; i <= count; i++) { String fileName = prefix + i + suffix; try { Loading @@ -195,6 +202,7 @@ public class SitemapIndexGenerator { throw new RuntimeException(e); } } } return this; } Loading Loading
src/main/java/com/redfin/sitemapgenerator/SitemapIndexGenerator.java +11 −3 Original line number Diff line number Diff line Loading @@ -187,6 +187,13 @@ public class SitemapIndexGenerator { * @param count the number of sitemaps (1-based) */ public SitemapIndexGenerator addUrls(String prefix, String suffix, int count) { if (count == 0) { try { addUrl(new URL(baseUrl, prefix + suffix)); } catch (MalformedURLException e) { throw new RuntimeException(e); } } else { for (int i = 1; i <= count; i++) { String fileName = prefix + i + suffix; try { Loading @@ -195,6 +202,7 @@ public class SitemapIndexGenerator { throw new RuntimeException(e); } } } return this; } Loading