use of org.apache.tika.parser.xml.AttributeMetadataHandler in project tika by apache.
the class OpenDocumentMetaParser method getStatistic.
private static ContentHandler getStatistic(ContentHandler ch, Metadata md, Property property, String attribute) {
Matcher matcher = META_XPATH.parse("//meta:document-statistic/@meta:" + attribute);
ContentHandler branch = new MatchingContentHandler(new AttributeMetadataHandler(META_NS, attribute, md, property), matcher);
return new TeeContentHandler(ch, branch);
}
use of org.apache.tika.parser.xml.AttributeMetadataHandler in project tika by apache.
the class OpenDocumentMetaParser method getStatistic.
@Deprecated
private static ContentHandler getStatistic(ContentHandler ch, Metadata md, String name, String attribute) {
Matcher matcher = META_XPATH.parse("//meta:document-statistic/@meta:" + attribute);
ContentHandler branch = new MatchingContentHandler(new AttributeMetadataHandler(META_NS, attribute, md, name), matcher);
return new TeeContentHandler(ch, branch);
}
Aggregations