org.apache.tika.sax
Class XMPContentHandler
java.lang.Object
org.xml.sax.helpers.DefaultHandler
org.apache.tika.sax.ContentHandlerDecorator
org.apache.tika.sax.SafeContentHandler
org.apache.tika.sax.XMPContentHandler
- All Implemented Interfaces:
- ContentHandler, DTDHandler, EntityResolver, ErrorHandler
public class XMPContentHandler
- extends SafeContentHandler
Content handler decorator that simplifies the task of producing XMP output.
- Since:
- Apache Tika 1.0
Field Summary |
static String |
RDF
The RDF namespace URI |
static String |
XMP
The XMP namespace URI |
Methods inherited from class org.xml.sax.helpers.DefaultHandler |
error, fatalError, notationDecl, resolveEntity, unparsedEntityDecl, warning |
RDF
public static final String RDF
- The RDF namespace URI
- See Also:
- Constant Field Values
XMP
public static final String XMP
- The XMP namespace URI
- See Also:
- Constant Field Values
XMPContentHandler
public XMPContentHandler(ContentHandler handler)
startDocument
public void startDocument()
throws SAXException
- Starts an XMP document by setting up the namespace mappings and
writing out the following header:
<rdf:RDF>
- Specified by:
startDocument
in interface ContentHandler
- Overrides:
startDocument
in class ContentHandlerDecorator
- Throws:
SAXException
endDocument
public void endDocument()
throws SAXException
- Ends the XMP document by writing the following footer and
clearing the namespace mappings:
</rdf:RDF>
- Specified by:
endDocument
in interface ContentHandler
- Overrides:
endDocument
in class SafeContentHandler
- Throws:
SAXException
startDescription
public void startDescription(String about,
String prefix,
String uri)
throws SAXException
- Throws:
SAXException
endDescription
public void endDescription()
throws SAXException
- Throws:
SAXException
property
public void property(String name,
String value)
throws SAXException
- Throws:
SAXException
metadata
public void metadata(Metadata metadata)
throws SAXException
- Throws:
SAXException
Copyright © 2007-2012 The Apache Software Foundation. All Rights Reserved.