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:
ContentHandler
,DTDHandler
,EntityResolver
,ErrorHandler
public class MetadataHandler extends 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, 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(String value)
Deprecated.void
characters(char[] ch, int start, int length)
Deprecated.void
endElement(String uri, String localName, String name)
Deprecated.void
startElement(String uri, String localName, String name, Attributes attributes)
Deprecated.-
Methods inherited from class org.xml.sax.helpers.DefaultHandler
endDocument, endPrefixMapping, error, fatalError, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, setDocumentLocator, skippedEntity, startDocument, startPrefixMapping, unparsedEntityDecl, warning
-
-
-
-
Method Detail
-
addMetadata
public void addMetadata(String value)
Deprecated.
-
endElement
public void endElement(String uri, String localName, String name)
Deprecated.- Specified by:
endElement
in interfaceContentHandler
- Overrides:
endElement
in classDefaultHandler
-
startElement
public void startElement(String uri, String localName, String name, Attributes attributes)
Deprecated.- Specified by:
startElement
in interfaceContentHandler
- Overrides:
startElement
in classDefaultHandler
-
characters
public void characters(char[] ch, int start, int length)
Deprecated.- Specified by:
characters
in interfaceContentHandler
- Overrides:
characters
in classDefaultHandler
-
-