org.apache.fop.apps
Class StreamRenderer
java.lang.Object
org.apache.fop.apps.StreamRenderer
- public class StreamRenderer
- extends Object
This class acts as a bridge between the XML:FO parser
and the formatting/rendering classes. It will queue
PageSequences up until all the IDs required by them
are satisfied, at which time it will render the
pages.
StreamRenderer is created by Driver and called from
FOTreeBuilder when a PageSequence is created,
and AreaTree when a Page is formatted.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
StreamRenderer
public StreamRenderer(OutputStream outputStream,
Renderer renderer)
setLogger
public void setLogger(org.apache.avalon.framework.logger.Logger logger)
getIDReferences
public IDReferences getIDReferences()
getResults
public FormattingResults getResults()
addExtension
public void addExtension(ExtensionObj ext)
startRenderer
public void startRenderer()
throws SAXException
- Throws:
SAXException
stopRenderer
public void stopRenderer()
throws SAXException
- Throws:
SAXException
render
public void render(PageSequence pageSequence)
throws SAXException
- Format the PageSequence. The PageSequence
formats Pages and adds them to the AreaTree,
which subsequently calls the StreamRenderer
instance (this) again to render the page.
At this time the page might be printed
or it might be queued. A page might not
be renderable immediately if the IDReferences
are not all valid. In this case we defer
the rendering until they are all valid.
- Throws:
SAXException
queuePage
public void queuePage(Page page)
throws FOPException,
IOException
- Throws:
FOPException
IOException
getDocumentMarkers
public ArrayList getDocumentMarkers()
getCurrentPageSequence
public PageSequence getCurrentPageSequence()
getCurrentPageSequenceMarkers
public ArrayList getCurrentPageSequenceMarkers()
Copyright ? 1999-2003 Apache Software Foundation. All Rights Reserved.