Package net.sf.jasperreports.export
Class SimpleExporterInput
java.lang.Object
net.sf.jasperreports.export.SimpleExporterInput
- All Implemented Interfaces:
ExporterInput
- Author:
- Teodor Danciu (teodord@users.sourceforge.net)
-
Constructor Summary
ConstructorsConstructorDescriptionSimpleExporterInput
(File file) Creates anExporterInput
object with a singleJasperPrint
item read from the provided java.io.File.SimpleExporterInput
(InputStream inputStream) Creates anExporterInput
object with a singleJasperPrint
item read from the provided input stream.SimpleExporterInput
(String fileName) Creates anExporterInput
object with a singleJasperPrint
item read from the provided file.SimpleExporterInput
(URL url) Creates anExporterInput
object with a singleJasperPrint
item read from the provided URL.SimpleExporterInput
(List<ExporterInputItem> items) Creates anExporterInput
object with the provided export items.SimpleExporterInput
(JasperPrint jasperPrint) Creates anExporterInput
object with a single item wrapping theJasperPrint
object that will be exported. -
Method Summary
Modifier and TypeMethodDescriptionstatic SimpleExporterInput
getInstance
(List<JasperPrint> jasperPrintList) Creates an ExportInput object containing the list ofJasperPrint
objects to be exported.getItems()
protected static List
<ExporterInputItem> getItems
(List<JasperPrint> jasperPrintList)
-
Constructor Details
-
SimpleExporterInput
Creates anExporterInput
object with a single item wrapping theJasperPrint
object that will be exported. If you already have a JasperPrint object, you can pass it to the exporter using this type of input. -
SimpleExporterInput
Creates anExporterInput
object with a singleJasperPrint
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. -
SimpleExporterInput
Creates anExporterInput
object with a singleJasperPrint
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. -
SimpleExporterInput
Creates anExporterInput
object with a singleJasperPrint
item read from the provided java.io.File. This is useful if the JasperPrint object is representing a file on disk. -
SimpleExporterInput
Creates anExporterInput
object with a singleJasperPrint
item read from the provided file. This is useful if the JasperPrint object is representing a file on disk. -
SimpleExporterInput
Creates anExporterInput
object with the provided export items.
-
-
Method Details
-
getInstance
Creates an ExportInput object containing the list ofJasperPrint
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 usingSimpleExporterInput(List)
instead. -
getItems
- Specified by:
getItems
in interfaceExporterInput
-
getItems
-