|
fop 0.95 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.xml.sax.helpers.DefaultHandler
org.apache.fop.fo.FOTreeBuilder
SAX Handler that passes parsed data to the various FO objects, where they can be used either to build an FO Tree, or used by Structure Renderers to build other data structures.
| Field Summary | |
protected org.xml.sax.ContentHandler |
delegate
Current delegate ContentHandler to receive the SAX events |
protected ElementMappingRegistry |
elementMappingRegistry
The registry for ElementMapping instances |
protected org.apache.commons.logging.Log |
log
logging instance |
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 Summary | |
FOTreeBuilder(java.lang.String outputFormat,
FOUserAgent foUserAgent,
java.io.OutputStream stream)
FOTreeBuilder constructor |
|
| Method Summary | |
void |
characters(char[] data,
int start,
int length)
|
void |
endDocument()
|
void |
endElement(java.lang.String uri,
java.lang.String localName,
java.lang.String rawName)
|
void |
error(org.xml.sax.SAXParseException e)
|
void |
fatalError(org.xml.sax.SAXParseException e)
|
protected org.xml.sax.Locator |
getEffectiveLocator()
|
FOEventHandler |
getEventHandler()
Provides access to the underlying FOEventHandler object. |
FormattingResults |
getResults()
Returns the results of the rendering process. |
void |
setDocumentLocator(org.xml.sax.Locator locator)
|
void |
startDocument()
|
void |
startElement(java.lang.String namespaceURI,
java.lang.String localName,
java.lang.String rawName,
org.xml.sax.Attributes attlist)
|
void |
warning(org.xml.sax.SAXParseException e)
|
| Methods inherited from class org.xml.sax.helpers.DefaultHandler |
endPrefixMapping, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, skippedEntity, startPrefixMapping, unparsedEntityDecl |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected org.apache.commons.logging.Log log
protected ElementMappingRegistry elementMappingRegistry
protected Root rootFObj
protected org.apache.fop.fo.FOTreeBuilder.MainFOHandler mainFOHandler
protected org.xml.sax.ContentHandler delegate
| Constructor Detail |
public FOTreeBuilder(java.lang.String outputFormat,
FOUserAgent foUserAgent,
java.io.OutputStream stream)
throws FOPException
FOTreeBuilder constructor
outputFormat - 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 to
FOPException - if the FOTreeBuilder cannot be properly created| Method Detail |
public void setDocumentLocator(org.xml.sax.Locator locator)
protected org.xml.sax.Locator getEffectiveLocator()
Locator instance if it is available and not disabled
public void characters(char[] data,
int start,
int length)
throws org.xml.sax.SAXException
org.xml.sax.SAXException
public void startDocument()
throws org.xml.sax.SAXException
org.xml.sax.SAXException
public void endDocument()
throws org.xml.sax.SAXException
org.xml.sax.SAXException
public void startElement(java.lang.String namespaceURI,
java.lang.String localName,
java.lang.String rawName,
org.xml.sax.Attributes attlist)
throws org.xml.sax.SAXException
org.xml.sax.SAXException
public void endElement(java.lang.String uri,
java.lang.String localName,
java.lang.String rawName)
throws org.xml.sax.SAXException
org.xml.sax.SAXExceptionpublic void warning(org.xml.sax.SAXParseException e)
public void error(org.xml.sax.SAXParseException e)
public void fatalError(org.xml.sax.SAXParseException e)
throws org.xml.sax.SAXException
org.xml.sax.SAXExceptionpublic FOEventHandler getEventHandler()
FOEventHandler object.
public FormattingResults getResults()
|
fop 0.95 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||