Save This Page
Home » fop-0.95beta-src » org.apache » fop » apps » [javadoc | source]
org.apache.fop.apps
public class: StreamRenderer [javadoc | source]
java.lang.Object
   org.apache.fop.apps.StreamRenderer
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.

Nested Class Summary:
class  StreamRenderer.RenderQueueEntry  A RenderQueueEntry consists of the Page to be queued, plus a list of outstanding ID references that need to be resolved before the Page can be renderered.

 

Field Summary
 int pageCount    Keep track of the number of pages rendered. 
Constructor:
 public StreamRenderer(OutputStream outputStream,
    Renderer renderer) 
Method from org.apache.fop.apps.StreamRenderer Summary:
addExtension,   getCurrentPageSequence,   getCurrentPageSequenceMarkers,   getDocumentMarkers,   getIDReferences,   getResults,   queuePage,   render,   setLogger,   startRenderer,   stopRenderer
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.apache.fop.apps.StreamRenderer Detail:
 public  void addExtension(ExtensionObj ext) 
 public PageSequence getCurrentPageSequence() 
 public ArrayList getCurrentPageSequenceMarkers() 
 public ArrayList getDocumentMarkers() 
 public IDReferences getIDReferences() 
 public FormattingResults getResults() 
 public synchronized  void queuePage(Page page) throws IOException, FOPException 
 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.
 public  void setLogger(Logger logger) 
 public  void startRenderer() throws SAXException 
 public  void stopRenderer() throws SAXException