Package 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
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 org.apache.tika.sax.SafeContentHandler
SafeContentHandler.Output
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
void
Ends the XMP document by writing the following footer and clearing the namespace mappings:void
void
void
startDescription
(String about, String prefix, String uri) void
Starts an XMP document by setting up the namespace mappings and writing out the following header:Methods inherited from class org.apache.tika.sax.SafeContentHandler
characters, endElement, ignorableWhitespace, isInvalid, startElement, writeReplacement
Methods inherited from class org.apache.tika.sax.ContentHandlerDecorator
endPrefixMapping, error, fatalError, handleException, processingInstruction, setContentHandler, setDocumentLocator, skippedEntity, startPrefixMapping, toString, warning
Methods inherited from class org.xml.sax.helpers.DefaultHandler
notationDecl, resolveEntity, unparsedEntityDecl
-
Field Details
-
RDF
The RDF namespace URI- See Also:
-
XMP
The XMP namespace URI- See Also:
-
-
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:
startDocument
in interfaceContentHandler
- Overrides:
startDocument
in classContentHandlerDecorator
- Throws:
SAXException
-
endDocument
Ends the XMP document by writing the following footer and clearing the namespace mappings:</rdf:RDF>
- Specified by:
endDocument
in interfaceContentHandler
- Overrides:
endDocument
in classSafeContentHandler
- Throws:
SAXException
-
startDescription
- Throws:
SAXException
-
endDescription
- Throws:
SAXException
-
property
- Throws:
SAXException
-
metadata
- Throws:
SAXException
-