public class FOTreeBuilder extends DefaultHandler
| Modifier and Type | Field and Description |
|---|---|
protected ContentHandler |
delegate
Current delegate ContentHandler to receive the SAX events
|
protected ElementMappingRegistry |
elementMappingRegistry
The registry for ElementMapping instances
|
protected org.apache.fop.fo.FOTreeBuilder.MainFOHandler |
mainFOHandler
Main DefaultHandler that handles the FO namespace.
|
protected Root |
rootFObj
The root of the formatting object tree
|
| Constructor and Description |
|---|
FOTreeBuilder(String outputFormat,
FOUserAgent foUserAgent,
OutputStream stream)
FOTreeBuilder constructor |
| Modifier and Type | Method and Description |
|---|---|
void |
characters(char[] data,
int start,
int length) |
void |
endDocument() |
void |
endElement(String uri,
String localName,
String rawName) |
void |
error(SAXParseException e) |
void |
fatalError(SAXParseException e) |
protected Locator |
getEffectiveLocator() |
FOEventHandler |
getEventHandler()
Provides access to the underlying
FOEventHandler object. |
FormattingResults |
getResults()
Returns the results of the rendering process.
|
void |
setDocumentLocator(Locator locator) |
void |
startDocument() |
void |
startElement(String namespaceURI,
String localName,
String rawName,
Attributes attlist) |
void |
warning(SAXParseException e) |
endPrefixMapping, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, skippedEntity, startPrefixMapping, unparsedEntityDeclprotected ElementMappingRegistry elementMappingRegistry
protected Root rootFObj
protected org.apache.fop.fo.FOTreeBuilder.MainFOHandler mainFOHandler
protected ContentHandler delegate
public FOTreeBuilder(String outputFormat, FOUserAgent foUserAgent, OutputStream stream) throws FOPException
FOTreeBuilder constructoroutputFormat - the MIME type of the output format to use (ex. "application/pdf").foUserAgent - the FOUserAgent in effect for this processstream - the OutputStream to direct the results toFOPException - if the FOTreeBuilder cannot be properly createdpublic void setDocumentLocator(Locator locator)
setDocumentLocator in interface ContentHandlersetDocumentLocator in class DefaultHandlerprotected Locator getEffectiveLocator()
Locator instance if it is available and not disabledpublic void characters(char[] data,
int start,
int length)
throws SAXException
characters in interface ContentHandlercharacters in class DefaultHandlerSAXExceptionpublic void startDocument()
throws SAXException
startDocument in interface ContentHandlerstartDocument in class DefaultHandlerSAXExceptionpublic void endDocument()
throws SAXException
endDocument in interface ContentHandlerendDocument in class DefaultHandlerSAXExceptionpublic void startElement(String namespaceURI, String localName, String rawName, Attributes attlist) throws SAXException
startElement in interface ContentHandlerstartElement in class DefaultHandlerSAXExceptionpublic void endElement(String uri, String localName, String rawName) throws SAXException
endElement in interface ContentHandlerendElement in class DefaultHandlerSAXExceptionpublic void warning(SAXParseException e)
warning in interface ErrorHandlerwarning in class DefaultHandlerpublic void error(SAXParseException e)
error in interface ErrorHandlererror in class DefaultHandlerpublic void fatalError(SAXParseException e) throws SAXException
fatalError in interface ErrorHandlerfatalError in class DefaultHandlerSAXExceptionpublic FOEventHandler getEventHandler()
FOEventHandler object.public FormattingResults getResults()
Copyright © 2025 Apache Software Foundation. All rights reserved.