|
fop 0.90alpha1 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.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 FONode |
currentFObj
Current formatting object being handled |
protected PropertyList |
currentPropertyList
Current propertyList for the node being handled. |
protected java.util.Map |
fobjTable
Table mapping element names to the makers of objects representing formatting objects. |
protected org.apache.commons.logging.Log |
log
logging instance |
protected java.util.Set |
namespaces
Set of mapped namespaces. |
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 |
addElementMapping(java.lang.String mappingClassName)
Add the element mapping with the given class name. |
void |
characters(char[] data,
int start,
int length)
SAX Handler for characters |
void |
endDocument()
SAX Handler for the end of the document |
void |
endElement(java.lang.String uri,
java.lang.String localName,
java.lang.String rawName)
SAX Handler for the end of an element |
void |
error(org.xml.sax.SAXParseException e)
|
void |
fatalError(org.xml.sax.SAXParseException e)
|
FOEventHandler |
getEventHandler()
Provides access to the underlying FOEventHandler object. |
FormattingResults |
getResults()
Returns the results of the rendering process. |
void |
reset()
Resets this object for another run. |
void |
setDocumentLocator(org.xml.sax.Locator locator)
SAX Handler for locator |
void |
startDocument()
SAX Handler for the start of the document |
void |
startElement(java.lang.String namespaceURI,
java.lang.String localName,
java.lang.String rawName,
org.xml.sax.Attributes attlist)
SAX Handler for the start of an element |
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 java.util.Map fobjTable
protected org.apache.commons.logging.Log log
protected java.util.Set namespaces
protected Root rootFObj
protected FONode currentFObj
protected PropertyList currentPropertyList
Constructor Detail |
public FOTreeBuilder(java.lang.String outputFormat, FOUserAgent foUserAgent, java.io.OutputStream stream) throws FOPException
outputFormat
- the MIME type of the output format to use (ex. "application/pdf").foUserAgent
- in effect for this processstream
- OutputStream to direct resultsFOPException
- if the FOTreeBuilder cannot be properly createdMethod Detail |
public void addElementMapping(java.lang.String mappingClassName) throws java.lang.IllegalArgumentException
mappingClassName
- the class name representing the element mapping.java.lang.IllegalArgumentException
- if there was not such element mapping.public void setDocumentLocator(org.xml.sax.Locator locator)
setDocumentLocator
in class org.xml.sax.helpers.DefaultHandler
ContentHandler.setDocumentLocator(Locator)
public void characters(char[] data, int start, int length) throws FOPException
characters
in class org.xml.sax.helpers.DefaultHandler
ContentHandler.characters(char[], int, int)
public void startDocument() throws org.xml.sax.SAXException
startDocument
in class org.xml.sax.helpers.DefaultHandler
ContentHandler.startDocument()
public void endDocument() throws org.xml.sax.SAXException
endDocument
in class org.xml.sax.helpers.DefaultHandler
ContentHandler.endDocument()
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
startElement
in class org.xml.sax.helpers.DefaultHandler
ContentHandler.startElement(String, String, String, Attributes)
public void endElement(java.lang.String uri, java.lang.String localName, java.lang.String rawName) throws FOPException
endElement
in class org.xml.sax.helpers.DefaultHandler
ContentHandler.endElement(String, String, String)
public void warning(org.xml.sax.SAXParseException e)
warning
in class org.xml.sax.helpers.DefaultHandler
ErrorHandler.warning(org.xml.sax.SAXParseException)
public void error(org.xml.sax.SAXParseException e)
error
in class org.xml.sax.helpers.DefaultHandler
ErrorHandler.error(org.xml.sax.SAXParseException)
public void fatalError(org.xml.sax.SAXParseException e) throws org.xml.sax.SAXException
fatalError
in class org.xml.sax.helpers.DefaultHandler
ErrorHandler.fatalError(org.xml.sax.SAXParseException)
public FOEventHandler getEventHandler()
public FormattingResults getResults()
public void reset()
|
fop 0.90alpha1 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |