Package org.apache.fop.render.bitmap
Class MultiFileRenderingUtil
java.lang.Object
org.apache.fop.render.bitmap.MultiFileRenderingUtil
This utility class helps renderers who generate one file per page,
like the PNG renderer.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateOutputStream
(int pageNumber) Creates a newOutputStream
for the given page number.
-
Constructor Details
-
MultiFileRenderingUtil
Creates a new instance.The file name must not have an extension, or must have extension "png", and its last period must not be at the start (empty file prefix).
- Parameters:
ext
- the extension to be usedoutputFile
- the output file or null if there's no such information
-
-
Method Details
-
createOutputStream
Creates a newOutputStream
for the given page number.- Parameters:
pageNumber
- the page number (zero-based)- Returns:
- the output stream for the page
- Throws:
IOException
- if there's an I/O error while setting up the output stream
-