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, unparsedEntityDecl
protected 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 ContentHandler
setDocumentLocator
in class DefaultHandler
protected Locator getEffectiveLocator()
Locator
instance if it is available and not disabledpublic void characters(char[] data, int start, int length) throws SAXException
characters
in interface ContentHandler
characters
in class DefaultHandler
SAXException
public void startDocument() throws SAXException
startDocument
in interface ContentHandler
startDocument
in class DefaultHandler
SAXException
public void endDocument() throws SAXException
endDocument
in interface ContentHandler
endDocument
in class DefaultHandler
SAXException
public void startElement(String namespaceURI, String localName, String rawName, Attributes attlist) throws SAXException
startElement
in interface ContentHandler
startElement
in class DefaultHandler
SAXException
public void endElement(String uri, String localName, String rawName) throws SAXException
endElement
in interface ContentHandler
endElement
in class DefaultHandler
SAXException
public void warning(SAXParseException e)
warning
in interface ErrorHandler
warning
in class DefaultHandler
public void error(SAXParseException e)
error
in interface ErrorHandler
error
in class DefaultHandler
public void fatalError(SAXParseException e) throws SAXException
fatalError
in interface ErrorHandler
fatalError
in class DefaultHandler
SAXException
public FOEventHandler getEventHandler()
FOEventHandler
object.public FormattingResults getResults()
Copyright © 2025 Apache Software Foundation. All rights reserved.