# Uses of Class crawlercommons.sitemaps.UnknownFormatException (Crawler-commons 0.10 API)
Date: 2018-06-05

## Uses of Class
crawlercommons.sitemaps.UnknownFormatException

Packages that use UnknownFormatException
crawlercommons.sitemaps: Sitemaps package provides all classes relevant to focused sitemap parsing, url definition and processing.
crawlercommons.sitemaps.sax

### Uses of UnknownFormatException in crawlercommons.sitemaps

Methods in crawlercommons.sitemaps that throw UnknownFormatException
`static void` SiteMapTester.`main(String[] args)`
`AbstractSiteMap` SiteMapParser.`parseSiteMap(byte[] content, URL url)` Parse a sitemap, given the content bytes and the URL.
`AbstractSiteMap` SiteMapParser.`parseSiteMap(String contentType, byte[] content, AbstractSiteMap sitemap)` Returns a processed copy of an unprocessed sitemap object, i.e.
`AbstractSiteMap` SiteMapParser.`parseSiteMap(String contentType, byte[] content, URL url)` Parse a sitemap, given the MIME type, the content bytes, and the URL.
`AbstractSiteMap` SiteMapParser.`parseSiteMap(URL onlineSitemapUrl)` Returns a SiteMap or SiteMapIndex given an online sitemap URL Please note that this method is a static method which goes online and fetches the sitemap then parses it This method is a convenience method for a user who has a sitemap URL and wants a "Keep it simple" way to parse it.
`protected AbstractSiteMap` SiteMapParser.`processGzippedXML(URL url, byte[] response)` Decompress the gzipped content and process the resulting XML Sitemap.
`protected AbstractSiteMap` SiteMapParser.`processXml(URL sitemapUrl, byte[] xmlContent)` Parse the given XML content.
`protected AbstractSiteMap` SiteMapParser.`processXml(URL sitemapUrl, InputSource is)` Parse the given XML content.
`void` SiteMapParser.`walkSiteMap(AbstractSiteMap sitemap, java.util.function.Consumer<SiteMapURL> action)` Traverse a sitemap, recursively fetching and traversing the content of any enclosed sitemap index, and performing the specified action for each sitemap URL until all URLs have been processed or the action throws an exception.
`void` SiteMapParser.`walkSiteMap(URL onlineSitemapUrl, java.util.function.Consumer<SiteMapURL> action)` Fetch a sitemap from the specified URL, recursively fetching and traversing the content of any enclosed sitemap index, and performing the specified action for each sitemap URL until all URLs have been processed or the action throws an exception.

### Uses of UnknownFormatException in crawlercommons.sitemaps.sax

Methods in crawlercommons.sitemaps.sax that return UnknownFormatException
`UnknownFormatException` DelegatorHandler.`getException()`

Methods in crawlercommons.sitemaps.sax with parameters of type UnknownFormatException
`protected void` DelegatorHandler.`setException(UnknownFormatException exception)`