public class CachedRenderPagesModel extends RenderPagesModel
Modifier and Type | Field and Description |
---|---|
protected java.io.File |
baseDir
Base directory to save temporary file in, typically points to the user's temp dir.
|
prepared, renderer
currentPageSequence, log
Constructor and Description |
---|
CachedRenderPagesModel(FOUserAgent userAgent,
java.lang.String outputFormat,
FontInfo fontInfo,
java.io.OutputStream stream)
Main Constructor
|
Modifier and Type | Method and Description |
---|---|
protected boolean |
checkPreparedPages(PageViewport newpage,
boolean renderUnresolved)
Check prepared pages
|
void |
endDocument()
End the document.
|
protected void |
savePage(PageViewport page)
Save a page.
|
addPage, handleOffDocumentItem, preparePage, renderPage, startPageSequence
getCurrentPageSequence, getPage, getPageCount, getPageSequenceCount
protected java.io.File baseDir
public CachedRenderPagesModel(FOUserAgent userAgent, java.lang.String outputFormat, FontInfo fontInfo, java.io.OutputStream stream) throws FOPException
userAgent
- FOUserAgent object for processoutputFormat
- the MIME type of the output format to use (ex. "application/pdf").fontInfo
- FontInfo objectstream
- OutputStreamFOPException
- if the renderer cannot be properly initializedprotected boolean checkPreparedPages(PageViewport newpage, boolean renderUnresolved)
checkPreparedPages
in class RenderPagesModel
newpage
- the new page being addedrenderUnresolved
- render pages with unresolved idref's
(done at end-of-document processing)protected void savePage(PageViewport page)
page
- the page to preparepublic void endDocument() throws org.xml.sax.SAXException
endDocument
in class RenderPagesModel
org.xml.sax.SAXException
- if a problem was encountered.Copyright 1999-2010 The Apache Software Foundation. All Rights Reserved.