use of org.apache.tika.parser.xml.MetadataHandler in project tika by apache.
the class OpenDocumentMetaParser method getMeta.
private static ContentHandler getMeta(ContentHandler ch, Metadata md, Property property, String element) {
Matcher matcher = new CompositeMatcher(META_XPATH.parse("//meta:" + element), META_XPATH.parse("//meta:" + element + "//text()"));
ContentHandler branch = new MatchingContentHandler(new MetadataHandler(md, property), matcher);
return new TeeContentHandler(ch, branch);
}
Aggregations