Package org.apache.tika.parser.xml
Class MetadataHandler
- java.lang.Object
-
- org.xml.sax.helpers.DefaultHandler
-
- org.apache.tika.parser.xml.MetadataHandler
-
- All Implemented Interfaces:
org.xml.sax.ContentHandler
,org.xml.sax.DTDHandler
,org.xml.sax.EntityResolver
,org.xml.sax.ErrorHandler
public class MetadataHandler extends org.xml.sax.helpers.DefaultHandler
Deprecated.Use theAttributeMetadataHandler
andElementMetadataHandler
classes insteadThis adds Metadata entries with a specified name for the textual content of a node (if present), and all attribute values passed through the matcher (but not their names).
-
-
Constructor Summary
Constructors Constructor Description MetadataHandler(Metadata metadata, java.lang.String name)
Deprecated.MetadataHandler(Metadata metadata, Property property)
Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description void
addMetadata(java.lang.String value)
Deprecated.void
characters(char[] ch, int start, int length)
Deprecated.void
endElement(java.lang.String uri, java.lang.String localName, java.lang.String name)
Deprecated.void
startElement(java.lang.String uri, java.lang.String localName, java.lang.String name, org.xml.sax.Attributes attributes)
Deprecated.
-
-
-
Method Detail
-
addMetadata
public void addMetadata(java.lang.String value)
Deprecated.
-
endElement
public void endElement(java.lang.String uri, java.lang.String localName, java.lang.String name)
Deprecated.- Specified by:
endElement
in interfaceorg.xml.sax.ContentHandler
- Overrides:
endElement
in classorg.xml.sax.helpers.DefaultHandler
-
startElement
public void startElement(java.lang.String uri, java.lang.String localName, java.lang.String name, org.xml.sax.Attributes attributes)
Deprecated.- Specified by:
startElement
in interfaceorg.xml.sax.ContentHandler
- Overrides:
startElement
in classorg.xml.sax.helpers.DefaultHandler
-
characters
public void characters(char[] ch, int start, int length)
Deprecated.- Specified by:
characters
in interfaceorg.xml.sax.ContentHandler
- Overrides:
characters
in classorg.xml.sax.helpers.DefaultHandler
-
-