Package org.apache.fop.util
Class DOMBuilderContentHandlerFactory
- java.lang.Object
-
- org.apache.fop.util.DOMBuilderContentHandlerFactory
-
- All Implemented Interfaces:
ContentHandlerFactory
public class DOMBuilderContentHandlerFactory extends java.lang.Object implements ContentHandlerFactory
ContentHandlerFactory which constructs ContentHandlers that build DOM Documents.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description private class
DOMBuilderContentHandlerFactory.Handler
-
Nested classes/interfaces inherited from interface org.apache.fop.util.ContentHandlerFactory
ContentHandlerFactory.ObjectBuiltListener, ContentHandlerFactory.ObjectSource
-
-
Field Summary
Fields Modifier and Type Field Description private org.w3c.dom.DOMImplementation
domImplementation
private java.lang.String
namespaceURI
private static javax.xml.transform.sax.SAXTransformerFactory
tFactory
-
Constructor Summary
Constructors Constructor Description DOMBuilderContentHandlerFactory(java.lang.String namespaceURI, org.w3c.dom.DOMImplementation domImplementation)
Main Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.xml.sax.ContentHandler
createContentHandler()
java.lang.String[]
getSupportedNamespaces()
-
-
-
Constructor Detail
-
DOMBuilderContentHandlerFactory
public DOMBuilderContentHandlerFactory(java.lang.String namespaceURI, org.w3c.dom.DOMImplementation domImplementation)
Main Constructor- Parameters:
namespaceURI
- the main namespace URI for the DOM to be parseddomImplementation
- the DOMImplementation to use for build the DOM
-
-
Method Detail
-
getSupportedNamespaces
public java.lang.String[] getSupportedNamespaces()
- Specified by:
getSupportedNamespaces
in interfaceContentHandlerFactory
- Returns:
- an array of supported namespaces.
-
createContentHandler
public org.xml.sax.ContentHandler createContentHandler() throws org.xml.sax.SAXException
- Specified by:
createContentHandler
in interfaceContentHandlerFactory
- Returns:
- a new ContentHandler to handle a SAX stream
- Throws:
org.xml.sax.SAXException
- if there's an error while preparing the ContentHandler
-
-