org.apache.tika.parser.xml
Class MetadataHandler

java.lang.Object
  extended by org.xml.sax.helpers.DefaultHandler
      extended by org.apache.tika.parser.xml.MetadataHandler
All Implemented Interfaces:
ContentHandler, DTDHandler, EntityResolver, ErrorHandler

Deprecated. Use the AttributeMetadataHandler and ElementMetadataHandler classes instead

public class MetadataHandler
extends org.xml.sax.helpers.DefaultHandler

This 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
MetadataHandler(Metadata metadata, Property property)
          Deprecated.  
MetadataHandler(Metadata metadata, String name)
          Deprecated.  
 
Method Summary
 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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MetadataHandler

public MetadataHandler(Metadata metadata,
                       String name)
Deprecated. 

MetadataHandler

public MetadataHandler(Metadata metadata,
                       Property property)
Deprecated. 
Method Detail

addMetadata

public void addMetadata(String value)
Deprecated. 

endElement

public void endElement(String uri,
                       String localName,
                       String name)
Deprecated. 
Specified by:
endElement in interface ContentHandler
Overrides:
endElement in class org.xml.sax.helpers.DefaultHandler

startElement

public void startElement(String uri,
                         String localName,
                         String name,
                         Attributes attributes)
Deprecated. 
Specified by:
startElement in interface ContentHandler
Overrides:
startElement in class org.xml.sax.helpers.DefaultHandler

characters

public void characters(char[] ch,
                       int start,
                       int length)
Deprecated. 
Specified by:
characters in interface ContentHandler
Overrides:
characters in class org.xml.sax.helpers.DefaultHandler


Copyright © 2007-2012 The Apache Software Foundation. All Rights Reserved.