Class AbstractXMLWritingIFDocumentHandler
java.lang.Object
org.apache.fop.render.intermediate.AbstractIFDocumentHandler
org.apache.fop.render.intermediate.AbstractXMLWritingIFDocumentHandler
- All Implemented Interfaces:
IFDocumentHandler
- Direct Known Subclasses:
IFSerializer
Abstract base class for XML-writing
IFDocumentHandler implementations.-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected GenerationHelperContentHandlerMain SAX ContentHandler to receive the generated SAX events.protected SAXTransformerFactoryDefault SAXTransformerFactory that can be used by subclasses. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected ContentHandlercreateContentHandler(Result result) Creates a ContentHandler for the given JAXP Result instance.protected abstract StringReturns the main namespace used for generated XML content.voidSets the JAXP Result object to receive the generated content.Methods inherited from class org.apache.fop.render.intermediate.AbstractIFDocumentHandler
endDocumentHeader, endDocumentTrailer, endPageHeader, endPageTrailer, getContext, getDocumentNavigationHandler, getStructureTreeEventHandler, getUserAgent, setDocumentLocale, startDocument, startDocumentHeader, startDocumentTrailer, startPageHeader, startPageTrailerMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.fop.render.intermediate.IFDocumentHandler
endDocument, endPage, endPageContent, endPageSequence, getConfigurator, getFontInfo, getMimeType, handleExtensionObject, setDefaultFontInfo, setFontInfo, startPage, startPageContent, startPageSequence, supportsPagesOutOfOrder
-
Field Details
-
tFactory
Default SAXTransformerFactory that can be used by subclasses. -
handler
Main SAX ContentHandler to receive the generated SAX events.
-
-
Constructor Details
-
AbstractXMLWritingIFDocumentHandler
-
-
Method Details
-
setResult
Sets the JAXP Result object to receive the generated content.- Parameters:
result- the JAXP Result object to receive the generated content- Throws:
IFException- if an error occurs setting up the output
-
getMainNamespace
Returns the main namespace used for generated XML content.- Returns:
- the main namespace
-
createContentHandler
Creates a ContentHandler for the given JAXP Result instance.- Parameters:
result- the JAXP Result instance- Returns:
- the requested SAX ContentHandler
- Throws:
IFException- if an error occurs setting up the output
-