fop 0.95

org.apache.fop.render.bitmap
Class MultiFileRenderingUtil

java.lang.Object
  extended by org.apache.fop.render.bitmap.MultiFileRenderingUtil

public class MultiFileRenderingUtil
extends java.lang.Object

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)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MultiFileRenderingUtil

public MultiFileRenderingUtil(java.lang.String ext,
                              java.io.File outputFile)
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 used
outputFile - the output file or null if there's no such information
Method Detail

createOutputStream

public java.io.OutputStream createOutputStream(int pageNumber)
                                        throws java.io.IOException
Throws:
java.io.IOException

fop 0.95

Copyright 1999-2008 The Apache Software Foundation. All Rights Reserved.