Package org.apache.fop.fo.extensions.xmp
Class XMPContentHandlerFactory.FOPXMPHandler
- java.lang.Object
-
- org.xml.sax.helpers.DefaultHandler
-
- org.apache.xmlgraphics.xmp.XMPHandler
-
- org.apache.fop.fo.extensions.xmp.XMPContentHandlerFactory.FOPXMPHandler
-
- All Implemented Interfaces:
ContentHandlerFactory.ObjectSource
,org.xml.sax.ContentHandler
,org.xml.sax.DTDHandler
,org.xml.sax.EntityResolver
,org.xml.sax.ErrorHandler
- Enclosing class:
- XMPContentHandlerFactory
private class XMPContentHandlerFactory.FOPXMPHandler extends org.apache.xmlgraphics.xmp.XMPHandler implements ContentHandlerFactory.ObjectSource
Local subclass of XMPHandler that implements ObjectSource for FOP integration.
-
-
Field Summary
Fields Modifier and Type Field Description private ContentHandlerFactory.ObjectBuiltListener
obListener
-
Constructor Summary
Constructors Modifier Constructor Description private
FOPXMPHandler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
endDocument()
java.lang.Object
getObject()
void
setObjectBuiltListener(ContentHandlerFactory.ObjectBuiltListener listener)
Set a listener which gets notified when the object is fully built.-
Methods inherited from class org.apache.xmlgraphics.xmp.XMPHandler
characters, endElement, getMetadata, startElement
-
-
-
-
Field Detail
-
obListener
private ContentHandlerFactory.ObjectBuiltListener obListener
-
-
Method Detail
-
getObject
public java.lang.Object getObject()
- Specified by:
getObject
in interfaceContentHandlerFactory.ObjectSource
- Returns:
- the object parsed from the SAX stream (call valid after parsing)
-
setObjectBuiltListener
public void setObjectBuiltListener(ContentHandlerFactory.ObjectBuiltListener listener)
Set a listener which gets notified when the object is fully built.- Specified by:
setObjectBuiltListener
in interfaceContentHandlerFactory.ObjectSource
- Parameters:
listener
- the listener which gets notified
-
endDocument
public void endDocument() throws org.xml.sax.SAXException
- Specified by:
endDocument
in interfaceorg.xml.sax.ContentHandler
- Overrides:
endDocument
in classorg.xml.sax.helpers.DefaultHandler
- Throws:
org.xml.sax.SAXException
-
-