|
fop 2.2 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.fop.render.bitmap.MultiFileRenderingUtil
public class MultiFileRenderingUtil
This utility class helps renderers who generate one file per page, like the PNG renderer.
Constructor Summary | |
---|---|
MultiFileRenderingUtil(java.lang.String ext,
java.io.File outputFile)
Creates a new instance. |
Method Summary | |
---|---|
java.io.OutputStream |
createOutputStream(int pageNumber)
Creates a new OutputStream for the given page number. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MultiFileRenderingUtil(java.lang.String ext, java.io.File outputFile)
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).
ext
- the extension to be usedoutputFile
- the output file or null if there's no such informationMethod Detail |
---|
public java.io.OutputStream createOutputStream(int pageNumber) throws java.io.IOException
OutputStream
for the given page number.
pageNumber
- the page number (zero-based)
java.io.IOException
- if there's an I/O error while setting up the output stream
|
fop 2.2 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |