public class MultiFileRenderingUtil
extends java.lang.Object
Constructor and Description |
---|
MultiFileRenderingUtil(java.lang.String ext,
java.io.File outputFile)
Creates a new instance.
|
Modifier and Type | Method and Description |
---|---|
java.io.OutputStream |
createOutputStream(int pageNumber)
Creates a new
OutputStream for the given page number. |
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 informationpublic 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 streamCopyright 1999-2017 The Apache Software Foundation. All Rights Reserved.