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
Content handler decorator that simplifies the task of producing XMP output.
- Since:
- Apache Tika 1.0
-
Nested Class Summary
Nested classes/interfaces inherited from class SafeContentHandler
SafeContentHandler.Output -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidEnds the XMP document by writing the following footer and clearing the namespace mappings:voidvoidvoidstartDescription(String about, String prefix, String uri) voidStarts an XMP document by setting up the namespace mappings and writing out the following header:Methods inherited from class SafeContentHandler
characters, endElement, ignorableWhitespace, isInvalid, startElement, writeReplacementMethods inherited from class ContentHandlerDecorator
endPrefixMapping, error, fatalError, handleException, processingInstruction, setContentHandler, setDocumentLocator, skippedEntity, startPrefixMapping, toString, warningMethods inherited from class DefaultHandler
notationDecl, resolveEntity, unparsedEntityDecl
-
Field Details
-
RDF
-
XMP
-
-
Constructor Details
-
XMPContentHandler
-
-
Method Details
-
startDocument
Starts an XMP document by setting up the namespace mappings and writing out the following header:<rdf:RDF>
- Specified by:
startDocumentin interfaceContentHandler- Overrides:
startDocumentin classContentHandlerDecorator- Throws:
SAXException
-
endDocument
Ends the XMP document by writing the following footer and clearing the namespace mappings:</rdf:RDF>
- Specified by:
endDocumentin interfaceContentHandler- Overrides:
endDocumentin classSafeContentHandler- Throws:
SAXException
-
startDescription
- Throws:
SAXException
-
endDescription
- Throws:
SAXException
-
property
- Throws:
SAXException
-
metadata
- Throws:
SAXException
-