public class SimpleExporterInput extends Object implements ExporterInput
Constructor and Description |
---|
SimpleExporterInput(File file)
Creates an
ExporterInput object with a single JasperPrint item read from the provided java.io.File. |
SimpleExporterInput(InputStream inputStream)
Creates an
ExporterInput object with a single JasperPrint item read from the provided input stream. |
SimpleExporterInput(JasperPrint jasperPrint)
Creates an
ExporterInput object with a single item wrapping the JasperPrint object that will be exported. |
SimpleExporterInput(List<ExporterInputItem> items)
Creates an
ExporterInput object with the provided export items. |
SimpleExporterInput(String fileName)
Creates an
ExporterInput object with a single JasperPrint item read from the provided file. |
SimpleExporterInput(URL url)
Creates an
ExporterInput object with a single JasperPrint item read from the provided URL. |
Modifier and Type | Method and Description |
---|---|
static SimpleExporterInput |
getInstance(List<JasperPrint> jasperPrintList)
Creates an ExportInput object containing the list of
JasperPrint objects to be exported. |
List<ExporterInputItem> |
getItems() |
protected static List<ExporterInputItem> |
getItems(List<JasperPrint> jasperPrintList) |
public SimpleExporterInput(JasperPrint jasperPrint)
ExporterInput
object with a single item wrapping the JasperPrint
object that will be exported.
If you already have a JasperPrint object, you can pass it to the exporter using this type of input.public SimpleExporterInput(InputStream inputStream)
ExporterInput
object with a single JasperPrint
item read from the provided input stream.
If you want to read the JasperPrint object from an input stream (like a web location), you can pass the stream to this constructor.public SimpleExporterInput(URL url)
ExporterInput
object with a single JasperPrint
item read from the provided URL.
If the JasperPrint object is available as a web resource, you can use this constructor, instead of opening
a HTTP connection and read from the input stream.public SimpleExporterInput(File file)
ExporterInput
object with a single JasperPrint
item read from the provided java.io.File.
This is useful if the JasperPrint object is representing a file on disk.public SimpleExporterInput(String fileName)
ExporterInput
object with a single JasperPrint
item read from the provided file.
This is useful if the JasperPrint object is representing a file on disk.public SimpleExporterInput(List<ExporterInputItem> items)
ExporterInput
object with the provided export items.public static SimpleExporterInput getInstance(List<JasperPrint> jasperPrintList)
JasperPrint
objects to be exported.
If you need to concatenate several reports into the same document, you can use this constructor,
provided that you don't need to specify a different export configuration for each item.
Otherwise, consider using SimpleExporterInput(List)
instead.public List<ExporterInputItem> getItems()
getItems
in interface ExporterInput
protected static List<ExporterInputItem> getItems(List<JasperPrint> jasperPrintList)
Copyright © 2017. All rights reserved.