public abstract class AbstractXMLWritingIFDocumentHandler extends AbstractIFDocumentHandler
IFDocumentHandler
implementations.Modifier and Type | Field and Description |
---|---|
protected GenerationHelperContentHandler |
handler
Main SAX ContentHandler to receive the generated SAX events.
|
protected SAXTransformerFactory |
tFactory
Default SAXTransformerFactory that can be used by subclasses.
|
Modifier | Constructor and Description |
---|---|
protected |
AbstractXMLWritingIFDocumentHandler(IFContext context) |
Modifier and Type | Method and Description |
---|---|
protected ContentHandler |
createContentHandler(Result result)
Creates a ContentHandler for the given JAXP Result instance.
|
protected abstract String |
getMainNamespace()
Returns the main namespace used for generated XML content.
|
void |
setResult(Result result)
Sets the JAXP Result object to receive the generated content.
|
endDocumentHeader, endDocumentTrailer, endPageHeader, endPageTrailer, getContext, getDocumentNavigationHandler, getStructureTreeEventHandler, getUserAgent, setDocumentLocale, startDocument, startDocumentHeader, startDocumentTrailer, startPageHeader, startPageTrailer
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
endDocument, endPage, endPageContent, endPageSequence, getConfigurator, getFontInfo, getMimeType, handleExtensionObject, setDefaultFontInfo, setFontInfo, startPage, startPageContent, startPageSequence, supportsPagesOutOfOrder
protected SAXTransformerFactory tFactory
protected GenerationHelperContentHandler handler
protected AbstractXMLWritingIFDocumentHandler(IFContext context)
public void setResult(Result result) throws IFException
result
- the JAXP Result object to receive the generated contentIFException
- if an error occurs setting up the outputprotected abstract String getMainNamespace()
protected ContentHandler createContentHandler(Result result) throws IFException
result
- the JAXP Result instanceIFException
- if an error occurs setting up the outputCopyright © 2025 Apache Software Foundation. All rights reserved.