org.apache.fop.area
Class CachedRenderPagesModel
public class CachedRenderPagesModel
A simple cached render pages model.
If the page is prepared for later rendering then this saves
the page contents to a file and once the page is resolved
the contents are reloaded.
protected File | baseDir - Base directory to save temporary file in, typically points to the user's temp dir.
|
baseDir
protected File baseDir
Base directory to save temporary file in, typically points to the user's temp dir.
CachedRenderPagesModel
public CachedRenderPagesModel(FOUserAgent userAgent,
String outputFormat,
FontInfo fontInfo,
OutputStream stream)
throws FOPException
Main Constructor
userAgent
- FOUserAgent object for processoutputFormat
- the MIME type of the output format to use (ex. "application/pdf").fontInfo
- FontInfo objectstream
- OutputStream
FOPException
- if the renderer cannot be properly initialized
savePage
protected void savePage(PageViewport page)
Save a page.
It saves the contents of the page to a file.
page
- the page to prepare
Copyright 1999-2008 The Apache Software Foundation. All Rights Reserved.