public class MultiFileRenderingUtil extends Object
Constructor and Description |
---|
MultiFileRenderingUtil(String ext,
File outputFile)
Creates a new instance.
|
Modifier and Type | Method and Description |
---|---|
OutputStream |
createOutputStream(int pageNumber)
Creates a new
OutputStream for the given page number. |
public MultiFileRenderingUtil(String ext, 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 informationpublic OutputStream createOutputStream(int pageNumber) throws IOException
OutputStream
for the given page number.pageNumber
- the page number (zero-based)IOException
- if there's an I/O error while setting up the output streamCopyright © 2025 Apache Software Foundation. All rights reserved.