Metadata entrydata = new Metadata();
entrydata.set(
Metadata.RESOURCE_NAME_KEY,
header.getFileNameString());
if (extractor.shouldParseEmbedded(entrydata)) {
extractor.parseEmbedded(stream, xhtml, entrydata, true);
}
}
xhtml.endDocument();
} catch (RarException e) {
throw new TikaException("Unable to parse a RAR archive", e);