public AbstractSiteMap parseSiteMap(byte[] content,URL url) throws UnknownFormatException, IOException {
  if (url == null) {
    return null;
  }
  String filename=FilenameUtils.getName(url.getPath());
  String contentType=TIKA.detect(content,filename);
  return parseSiteMap(contentType,content,url);
}

public AbstractSiteMap parseSiteMap ( byte [ ] content , URL url ) throws UnknownFormatException , IOException { if ( url == null ) { return null ; } String filename = FilenameUtils . getName ( url . getPath ( ) ) ; String contentType = TIKA . detect ( content , filename ) ; return parseSiteMap ( contentType , content , url ) ; }
parse a sitemap , given the content bytes and the url .
