|
fop 0.90alpha1 | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.fop.render.xml.XMLXMLHandler
XML handler for the XML renderer.
Field Summary | |
static java.lang.String |
HANDLER
Key for getting the TransformerHandler from the RendererContext |
Fields inherited from interface org.apache.fop.render.XMLHandler |
HANDLE_ALL |
Constructor Summary | |
XMLXMLHandler()
|
Method Summary | |
java.lang.String |
getMimeType()
|
java.lang.String |
getNamespace()
|
void |
handleXML(RendererContext context,
org.w3c.dom.Document doc,
java.lang.String ns)
Handle an external xml document inside a Foreign Object Area. |
void |
writeDocument(org.w3c.dom.Document doc,
javax.xml.transform.sax.TransformerHandler handler)
Writes the given document using the given TransformerHandler. |
void |
writeNode(org.w3c.dom.Node node,
javax.xml.transform.sax.TransformerHandler handler)
Writes a node using the given writer. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final java.lang.String HANDLER
Constructor Detail |
public XMLXMLHandler()
Method Detail |
public void handleXML(RendererContext context, org.w3c.dom.Document doc, java.lang.String ns) throws java.lang.Exception
XMLHandler
Handle an external xml document inside a Foreign Object Area.
This may throw an exception if for some reason it cannot be handled. The caller is expected to deal with this exception.
The implementation may convert the XML document internally to another XML dialect (SVG, for example) and call renderXML() on the AbstractRenderer again (which can be retrieved through the RendererContext).
handleXML
in interface XMLHandler
context
- The RendererContext (contains the user agent)doc
- A DOM containing the foreign object to be
processedns
- The Namespace of the foreign object
java.lang.Exception
- If an error occurs during processing.XMLHandler
public void writeDocument(org.w3c.dom.Document doc, javax.xml.transform.sax.TransformerHandler handler) throws org.xml.sax.SAXException
doc
- DOM documenthandler
- TransformerHandler to write to
org.xml.sax.SAXException
- In case of a problem while writing XMLpublic void writeNode(org.w3c.dom.Node node, javax.xml.transform.sax.TransformerHandler handler) throws org.xml.sax.SAXException
node
- node to serializehandler
- TransformerHandler to write to
org.xml.sax.SAXException
- In case of a problem while writing XMLpublic java.lang.String getMimeType()
getMimeType
in interface XMLHandler
XMLHandler.getMimeType()
public java.lang.String getNamespace()
getNamespace
in interface XMLHandler
XMLHandler.getNamespace()
|
fop 0.90alpha1 | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |