use of org.apache.tika.parser.html.IdentityHtmlMapper in project tika by apache.
the class TIAParsingExample method testHtmlMapper.
public static void testHtmlMapper() throws Exception {
InputStream stream = new ByteArrayInputStream(new byte[0]);
ContentHandler handler = new DefaultHandler();
Metadata metadata = new Metadata();
Parser parser = new AutoDetectParser();
ParseContext context = new ParseContext();
context.set(HtmlMapper.class, new IdentityHtmlMapper());
parser.parse(stream, handler, metadata, context);
}
Aggregations