use of org.apache.tika.sax.OfflineContentHandler in project tika by apache.
the class OpenDocumentContentParser method parseInternal.
void parseInternal(InputStream stream, final ContentHandler handler, Metadata metadata, ParseContext context) throws IOException, SAXException, TikaException {
DefaultHandler dh = new OpenDocumentElementMappingContentHandler(handler, MAPPINGS);
SAXParser parser = context.getSAXParser();
parser.parse(new CloseShieldInputStream(stream), new OfflineContentHandler(new NSNormalizerContentHandler(dh)));
}
Aggregations