You are on page 1of 12

Overview Package Class Use Tree Deprecated Index Help

Prev Class Next Class Frames No Frames All Classes


Summary: Nested | Field | Constr | Method Detail: Field | Constr | Method
net.sf.jasperreports.engine
Class JasperFillManager
java.lang.Object
net.sf.jasperreports.engine.JasperFillManager
public final class JasperFillManager
extends java.lang.Object
Faade class for filling compiled report designs with data from report data sources, in order to produce page-oriented documents, ready-to-print.
All methods receive a Map object that should contain the values for the report parameters. These value are retrieved bythe engine using the corresponding report parameter name as the key.
There are two types of method signatures with regards to the data source provided for filling the report:
Methods that receive an instance of the JRDataSource interface and use it directlyfor retrieving report data;
Methods that receive an instance of the Connection interface and retrieve the report data byexecuting the report internal SQL querythrough this JDBC connection and wrapping the returned
ResultSet object inside a JRResultSetDataSource instance.
Version:
$Id: JasperFillManager.java 5878 2013-01-07 20:23:13Z teodord $
Author:
Teodor Danciu (teodord@users.sourceforge.net)
See Also:
JasperReport, JRDataSource, JRFiller, JasperPrint
Method Summary
Modifier and Type Method and Description
JasperPrint fill(java.io.InputStream inputStream,
java.util.Map<java.lang.String,java.lang.Object> parameters)
Fills the compiled report design loaded from the supplied input stream and returns the generated report object.
JasperPrint fill(java.io.InputStream inputStream,
java.util.Map<java.lang.String,java.lang.Object> parameters,
java.sql.Connection connection)
Fills the compiled report design loaded from the supplied input stream and returns the generated report object.
JasperPrint fill(java.io.InputStream inputStream,
java.util.Map<java.lang.String,java.lang.Object> parameters, JRDataSource dataSource)
Fills the compiled report design loaded from the supplied input stream and returns the generated report object.
JasperPrint fill(JasperReport jasperReport,
java.util.Map<java.lang.String,java.lang.Object> parameters)
Fills the compiled report design supplied as the first parameter and returns the generated report object.
JasperPrint fill(JasperReport jasperReport,
java.util.Map<java.lang.String,java.lang.Object> parameters,
java.sql.Connection connection)
Fills the compiled report design supplied as the first parameter and returns the generated report object.
JasperPrint fill(JasperReport jasperReport,
java.util.Map<java.lang.String,java.lang.Object> parameters, JRDataSource dataSource)
Fills the compiled report design supplied as the first parameter and returns the generated report object.
JasperPrint fill(java.lang.String sourceFileName,
java.util.Map<java.lang.String,java.lang.Object> params)
Fills the compiled report design loaded from the specified file and returns the generated report object.
JasperPrint fill(java.lang.String sourceFileName,
java.util.Map<java.lang.String,java.lang.Object> params, java.sql.Connection connection)
Fills the compiled report design loaded from the specified file and returns the generated report object.
JasperPrint fill(java.lang.String sourceFileName,
java.util.Map<java.lang.String,java.lang.Object> params, JRDataSource dataSource)
Fills the compiled report design loaded from the specified file and returns the generated report object.
static JasperPrint fillReport(java.io.InputStream inputStream,
java.util.Map<java.lang.String,java.lang.Object> parameters)
static JasperPrint fillReport(java.io.InputStream inputStream,
java.util.Map<java.lang.String,java.lang.Object> parameters,
java.sql.Connection connection)
static JasperPrint fillReport(java.io.InputStream inputStream,
java.util.Map<java.lang.String,java.lang.Object> parameters, JRDataSource dataSource)
static JasperPrint fillReport(JasperReport jasperReport,
java.util.Map<java.lang.String,java.lang.Object> parameters)
static JasperPrint fillReport(JasperReport jasperReport,
java.util.Map<java.lang.String,java.lang.Object> parameters,
java.sql.Connection connection)
static JasperPrint fillReport(JasperReport jasperReport,
java.util.Map<java.lang.String,java.lang.Object> parameters, JRDataSource dataSource)
static JasperPrint fillReport(java.lang.String sourceFileName,
java.util.Map<java.lang.String,java.lang.Object> params)
static JasperPrint fillReport(java.lang.String sourceFileName,
java.util.Map<java.lang.String,java.lang.Object> params, java.sql.Connection connection)
static JasperPrint fillReport(java.lang.String sourceFileName,
java.util.Map<java.lang.String,java.lang.Object> params, JRDataSource dataSource)
static void fillReportToFile(JasperReport jasperReport, java.lang.String destFileName,
java.util.Map<java.lang.String,java.lang.Object> parameters)
static void fillReportToFile(JasperReport jasperReport, java.lang.String destFileName,
Methods
JasperFillManager (JasperReports 5.5.0 API) 07/12/2013
http://jasperreports.sourceforge.net/api/net/sf/jasperreports/engine/JasperFillManager.html 1 / 12
java.util.Map<java.lang.String,java.lang.Object> parameters,
java.sql.Connection connection)
static void fillReportToFile(JasperReport jasperReport, java.lang.String destFileName,
java.util.Map<java.lang.String,java.lang.Object> parameters, JRDataSource dataSource)
static java.lang.String fillReportToFile(java.lang.String sourceFileName,
java.util.Map<java.lang.String,java.lang.Object> params)
static java.lang.String fillReportToFile(java.lang.String sourceFileName,
java.util.Map<java.lang.String,java.lang.Object> params, java.sql.Connection connection)
static java.lang.String fillReportToFile(java.lang.String sourceFileName,
java.util.Map<java.lang.String,java.lang.Object> params, JRDataSource dataSource)
static void fillReportToFile(java.lang.String sourceFileName, java.lang.String destFileName,
java.util.Map<java.lang.String,java.lang.Object> params)
static void fillReportToFile(java.lang.String sourceFileName, java.lang.String destFileName,
java.util.Map<java.lang.String,java.lang.Object> params, java.sql.Connection connection)
static void fillReportToFile(java.lang.String sourceFileName, java.lang.String destFileName,
java.util.Map<java.lang.String,java.lang.Object> params, JRDataSource dataSource)
static void fillReportToStream(java.io.InputStream inputStream, java.io.OutputStream outputStream,
java.util.Map<java.lang.String,java.lang.Object> parameters)
static void fillReportToStream(java.io.InputStream inputStream, java.io.OutputStream outputStream,
java.util.Map<java.lang.String,java.lang.Object> parameters,
java.sql.Connection connection)
static void fillReportToStream(java.io.InputStream inputStream, java.io.OutputStream outputStream,
java.util.Map<java.lang.String,java.lang.Object> parameters, JRDataSource dataSource)
static void fillReportToStream(JasperReport jasperReport, java.io.OutputStream outputStream,
java.util.Map<java.lang.String,java.lang.Object> parameters)
static void fillReportToStream(JasperReport jasperReport, java.io.OutputStream outputStream,
java.util.Map<java.lang.String,java.lang.Object> parameters,
java.sql.Connection connection)
static void fillReportToStream(JasperReport jasperReport, java.io.OutputStream outputStream,
java.util.Map<java.lang.String,java.lang.Object> parameters, JRDataSource dataSource)
void fillToFile(JasperReport jasperReport, java.lang.String destFileName,
java.util.Map<java.lang.String,java.lang.Object> parameters)
Fills the compiled report design received as the first parameter and places the result in the file specified bythe
second parameter.
void fillToFile(JasperReport jasperReport, java.lang.String destFileName,
java.util.Map<java.lang.String,java.lang.Object> parameters,
java.sql.Connection connection)
Fills the compiled report design received as the first parameter and places the result in the file specified bythe
second parameter.
void fillToFile(JasperReport jasperReport, java.lang.String destFileName,
java.util.Map<java.lang.String,java.lang.Object> parameters, JRDataSource dataSource)
Fills the compiled report design received as the first parameter and places the result in the file specified bythe
second parameter.
java.lang.String fillToFile(java.lang.String sourceFileName,
java.util.Map<java.lang.String,java.lang.Object> params)
Fills the compiled report design loaded from the specified file.
java.lang.String fillToFile(java.lang.String sourceFileName,
java.util.Map<java.lang.String,java.lang.Object> params, java.sql.Connection connection)
Fills the compiled report design loaded from the specified file.
java.lang.String fillToFile(java.lang.String sourceFileName,
java.util.Map<java.lang.String,java.lang.Object> params, JRDataSource dataSource)
Fills the compiled report design loaded from the specified file.
void fillToFile(java.lang.String sourceFileName, java.lang.String destFileName,
java.util.Map<java.lang.String,java.lang.Object> params)
Fills the compiled report design loaded from the file received as the first parameter and places the result in the file
specified bythe second parameter.
void fillToFile(java.lang.String sourceFileName, java.lang.String destFileName,
java.util.Map<java.lang.String,java.lang.Object> params, java.sql.Connection connection)
Fills the compiled report design loaded from the file received as the first parameter and places the result in the file
specified bythe second parameter.
void fillToFile(java.lang.String sourceFileName, java.lang.String destFileName,
java.util.Map<java.lang.String,java.lang.Object> params, JRDataSource dataSource)
Fills the compiled report design loaded from the file received as the first parameter and places the result in the file
specified bythe second parameter.
void fillToStream(java.io.InputStream inputStream, java.io.OutputStream outputStream,
java.util.Map<java.lang.String,java.lang.Object> parameters)
Fills the compiled report design loaded from the supplied input stream and writes the generated report object to
the output stream specified bythe second parameter.
void fillToStream(java.io.InputStream inputStream, java.io.OutputStream outputStream,
java.util.Map<java.lang.String,java.lang.Object> parameters,
java.sql.Connection connection)
Fills the compiled report design loaded from the supplied input stream and writes the generated report object to
the output stream specified bythe second parameter.
void fillToStream(java.io.InputStream inputStream, java.io.OutputStream outputStream,
java.util.Map<java.lang.String,java.lang.Object> parameters, JRDataSource dataSource)
Fills the compiled report design loaded from the supplied input stream and writes the generated report object to
the output stream specified bythe second parameter.
void fillToStream(JasperReport jasperReport, java.io.OutputStream outputStream,
java.util.Map<java.lang.String,java.lang.Object> parameters)
Fills the compiled report design supplied as the first parameter and writes the generated report object to the
output stream specified bythe second parameter.
void fillToStream(JasperReport jasperReport, java.io.OutputStream outputStream,
java.util.Map<java.lang.String,java.lang.Object> parameters,
java.sql.Connection connection)
Fills the compiled report design supplied as the first parameter and writes the generated report object to the
output stream specified bythe second parameter.
void fillToStream(JasperReport jasperReport, java.io.OutputStream outputStream,
java.util.Map<java.lang.String,java.lang.Object> parameters, JRDataSource dataSource)
Fills the compiled report design supplied as the first parameter and writes the generated report object to the
output stream specified bythe second parameter.
static JasperFillManager getInstance(JasperReportsContext jasperReportsContext)
JasperFillManager (JasperReports 5.5.0 API) 07/12/2013
http://jasperreports.sourceforge.net/api/net/sf/jasperreports/engine/JasperFillManager.html 2 / 12
protected java.util.Map<java.lang.String,java.lang.Object> setFileResolver(java.io.File file,
java.util.Map<java.lang.String,java.lang.Object> params)
protected static Map setFileResolver(File file, Map params) { Map parameters = params; if (parameters == null) {
parameters = new HashMap(); } if (!
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Method Detail
getInstance
public static JasperFillManager getInstance(JasperReportsContext jasperReportsContext)
fillToFile
public java.lang.String fillToFile(java.lang.String sourceFileName,
java.util.Map<java.lang.String,java.lang.Object> params,
java.sql.Connection connection)
throws JRException
Fills the compiled report design loaded from the specified file. The result of this operation is another file that will contain the serialized JasperPrint object representing the generated
document, having the same name as the report design as declared in the source file, plus the *.jrprint extension, located in the same directoryas the source file.
Parameters:
sourceFileName - source file containing the compile report design
params - report parameters map
connection - JDBC connection object to use for executing the report internal SQL query
Throws:
JRException
fillToFile
public java.lang.String fillToFile(java.lang.String sourceFileName,
java.util.Map<java.lang.String,java.lang.Object> params)
throws JRException
Fills the compiled report design loaded from the specified file. The result of this operation is another file that will contain the serialized JasperPrint object representing the generated
document, having the same name as the report design as declared in the source file, plus the *.jrprint extension, located in the same directoryas the source file.
Parameters:
sourceFileName - source file containing the compile report design
params - report parameters map
Throws:
JRException
See Also:
JRFiller.fillReport(JasperReport, Map)
fillToFile
public void fillToFile(java.lang.String sourceFileName,
java.lang.String destFileName,
java.util.Map<java.lang.String,java.lang.Object> params,
java.sql.Connection connection)
throws JRException
Fills the compiled report design loaded from the file received as the first parameter and places the result in the file specified bythe second parameter.
Parameters:
sourceFileName - source file containing the compile report design
destFileName - file name to place the generated report into
params - report parameters map
connection - JDBC connection object to use for executing the report internal SQL query
Throws:
JRException
fillToFile
public void fillToFile(java.lang.String sourceFileName,
java.lang.String destFileName,
java.util.Map<java.lang.String,java.lang.Object> params)
throws JRException
Fills the compiled report design loaded from the file received as the first parameter and places the result in the file specified bythe second parameter.
Parameters:
sourceFileName - source file containing the compile report design
destFileName - file name to place the generated report into
params - report parameters map
JasperFillManager (JasperReports 5.5.0 API) 07/12/2013
http://jasperreports.sourceforge.net/api/net/sf/jasperreports/engine/JasperFillManager.html 3 / 12
Throws:
JRException
See Also:
JRFiller.fillReport(JasperReport, Map)
fillToFile
public void fillToFile(JasperReport jasperReport,
java.lang.String destFileName,
java.util.Map<java.lang.String,java.lang.Object> parameters,
java.sql.Connection connection)
throws JRException
Fills the compiled report design received as the first parameter and places the result in the file specified bythe second parameter.
Parameters:
jasperReport - compiled report design object to use for filling
destFileName - file name to place the generated report into
parameters - report parameters map
connection - JDBC connection object to use for executing the report internal SQL query
Throws:
JRException
fillToFile
public void fillToFile(JasperReport jasperReport,
java.lang.String destFileName,
java.util.Map<java.lang.String,java.lang.Object> parameters)
throws JRException
Fills the compiled report design received as the first parameter and places the result in the file specified bythe second parameter.
Parameters:
jasperReport - compiled report design object to use for filling
destFileName - file name to place the generated report into
parameters - report parameters map
Throws:
JRException
See Also:
JRFiller.fillReport(JasperReport, Map)
fill
public JasperPrint fill(java.lang.String sourceFileName,
java.util.Map<java.lang.String,java.lang.Object> params,
java.sql.Connection connection)
throws JRException
Fills the compiled report design loaded from the specified file and returns the generated report object.
Parameters:
sourceFileName - source file containing the compile report design
params - report parameters map
connection - JDBC connection object to use for executing the report internal SQL query
Returns:
generated report object
Throws:
JRException
fill
public JasperPrint fill(java.lang.String sourceFileName,
java.util.Map<java.lang.String,java.lang.Object> params)
throws JRException
Fills the compiled report design loaded from the specified file and returns the generated report object.
Parameters:
sourceFileName - source file containing the compile report design
params - report parameters map
Returns:
generated report object
Throws:
JRException
See Also:
JRFiller.fillReport(JasperReport, Map)
JasperFillManager (JasperReports 5.5.0 API) 07/12/2013
http://jasperreports.sourceforge.net/api/net/sf/jasperreports/engine/JasperFillManager.html 4 / 12
fillToStream
public void fillToStream(java.io.InputStream inputStream,
java.io.OutputStream outputStream,
java.util.Map<java.lang.String,java.lang.Object> parameters,
java.sql.Connection connection)
throws JRException
Fills the compiled report design loaded from the supplied input stream and writes the generated report object to the output stream specified bythe second parameter.
Parameters:
inputStream - input stream to read the compiled report design object from
outputStream - output stream to write the generated report object to
parameters - report parameters map
connection - JDBC connection object to use for executing the report internal SQL query
Throws:
JRException
fillToStream
public void fillToStream(java.io.InputStream inputStream,
java.io.OutputStream outputStream,
java.util.Map<java.lang.String,java.lang.Object> parameters)
throws JRException
Fills the compiled report design loaded from the supplied input stream and writes the generated report object to the output stream specified bythe second parameter.
Parameters:
inputStream - input stream to read the compiled report design object from
outputStream - output stream to write the generated report object to
parameters - report parameters map
Throws:
JRException
See Also:
JRFiller.fillReport(JasperReport, Map)
fillToStream
public void fillToStream(JasperReport jasperReport,
java.io.OutputStream outputStream,
java.util.Map<java.lang.String,java.lang.Object> parameters,
java.sql.Connection connection)
throws JRException
Fills the compiled report design supplied as the first parameter and writes the generated report object to the output stream specified bythe second parameter.
Parameters:
jasperReport - compiled report design object to use for filling
outputStream - output stream to write the generated report object to
parameters - report parameters map
connection - JDBC connection object to use for executing the report internal SQL query
Throws:
JRException
fillToStream
public void fillToStream(JasperReport jasperReport,
java.io.OutputStream outputStream,
java.util.Map<java.lang.String,java.lang.Object> parameters)
throws JRException
Fills the compiled report design supplied as the first parameter and writes the generated report object to the output stream specified bythe second parameter.
Parameters:
jasperReport - compiled report design object to use for filling
outputStream - output stream to write the generated report object to
parameters - report parameters map
Throws:
JRException
See Also:
JRFiller.fillReport(JasperReport, Map)
fill
public JasperPrint fill(java.io.InputStream inputStream,
java.util.Map<java.lang.String,java.lang.Object> parameters,
java.sql.Connection connection)
throws JRException
Fills the compiled report design loaded from the supplied input stream and returns the generated report object.
JasperFillManager (JasperReports 5.5.0 API) 07/12/2013
http://jasperreports.sourceforge.net/api/net/sf/jasperreports/engine/JasperFillManager.html 5 / 12
Parameters:
inputStream - input stream to read the compiled report design object from
parameters - report parameters map
connection - JDBC connection object to use for executing the report internal SQL query
Returns:
generated report object
Throws:
JRException
fill
public JasperPrint fill(java.io.InputStream inputStream,
java.util.Map<java.lang.String,java.lang.Object> parameters)
throws JRException
Fills the compiled report design loaded from the supplied input stream and returns the generated report object.
Parameters:
inputStream - input stream to read the compiled report design object from
parameters - report parameters map
Returns:
generated report object
Throws:
JRException
See Also:
JRFiller.fillReport(JasperReport, Map)
fill
public JasperPrint fill(JasperReport jasperReport,
java.util.Map<java.lang.String,java.lang.Object> parameters,
java.sql.Connection connection)
throws JRException
Fills the compiled report design supplied as the first parameter and returns the generated report object.
Parameters:
jasperReport - compiled report design object to use for filling
parameters - report parameters map
connection - JDBC connection object to use for executing the report internal SQL query
Returns:
generated report object
Throws:
JRException
fill
public JasperPrint fill(JasperReport jasperReport,
java.util.Map<java.lang.String,java.lang.Object> parameters)
throws JRException
Fills the compiled report design supplied as the first parameter and returns the generated report object.
Parameters:
jasperReport - compiled report design object to use for filling
parameters - report parameters map
Returns:
generated report object
Throws:
JRException
See Also:
JRFiller.fillReport(JasperReport, Map)
fillToFile
public java.lang.String fillToFile(java.lang.String sourceFileName,
java.util.Map<java.lang.String,java.lang.Object> params,
JRDataSource dataSource)
throws JRException
Fills the compiled report design loaded from the specified file. The result of this operation is another file that will contain the serialized JasperPrint object representing the generated
document, having the same name as the report design as declared in the source file, plus the *.jrprint extension, located in the same directoryas the source file.
Parameters:
sourceFileName - source file containing the compile report design
params - report parameters map
dataSource - data source object
JasperFillManager (JasperReports 5.5.0 API) 07/12/2013
http://jasperreports.sourceforge.net/api/net/sf/jasperreports/engine/JasperFillManager.html 6 / 12
Throws:
JRException
fillToFile
public void fillToFile(java.lang.String sourceFileName,
java.lang.String destFileName,
java.util.Map<java.lang.String,java.lang.Object> params,
JRDataSource dataSource)
throws JRException
Fills the compiled report design loaded from the file received as the first parameter and places the result in the file specified bythe second parameter.
Parameters:
sourceFileName - source file containing the compile report design
destFileName - file name to place the generated report into
params - report parameters map
dataSource - data source object
Throws:
JRException
fillToFile
public void fillToFile(JasperReport jasperReport,
java.lang.String destFileName,
java.util.Map<java.lang.String,java.lang.Object> parameters,
JRDataSource dataSource)
throws JRException
Fills the compiled report design received as the first parameter and places the result in the file specified bythe second parameter.
Parameters:
jasperReport - compiled report design object to use for filling
destFileName - file name to place the generated report into
parameters - report parameters map
dataSource - data source object
Throws:
JRException
fill
public JasperPrint fill(java.lang.String sourceFileName,
java.util.Map<java.lang.String,java.lang.Object> params,
JRDataSource dataSource)
throws JRException
Fills the compiled report design loaded from the specified file and returns the generated report object.
Parameters:
sourceFileName - source file containing the compile report design
params - report parameters map
dataSource - data source object
Returns:
generated report object
Throws:
JRException
fillToStream
public void fillToStream(java.io.InputStream inputStream,
java.io.OutputStream outputStream,
java.util.Map<java.lang.String,java.lang.Object> parameters,
JRDataSource dataSource)
throws JRException
Fills the compiled report design loaded from the supplied input stream and writes the generated report object to the output stream specified bythe second parameter.
Parameters:
inputStream - input stream to read the compiled report design object from
outputStream - output stream to write the generated report object to
parameters - report parameters map
dataSource - data source object
Throws:
JRException
fillToStream
public void fillToStream(JasperReport jasperReport,
JasperFillManager (JasperReports 5.5.0 API) 07/12/2013
http://jasperreports.sourceforge.net/api/net/sf/jasperreports/engine/JasperFillManager.html 7 / 12
java.io.OutputStream outputStream,
java.util.Map<java.lang.String,java.lang.Object> parameters,
JRDataSource dataSource)
throws JRException
Fills the compiled report design supplied as the first parameter and writes the generated report object to the output stream specified bythe second parameter.
Parameters:
jasperReport - compiled report design object to use for filling
outputStream - output stream to write the generated report object to
parameters - report parameters map
dataSource - data source object
Throws:
JRException
fill
public JasperPrint fill(java.io.InputStream inputStream,
java.util.Map<java.lang.String,java.lang.Object> parameters,
JRDataSource dataSource)
throws JRException
Fills the compiled report design loaded from the supplied input stream and returns the generated report object.
Parameters:
inputStream - input stream to read the compiled report design object from
parameters - report parameters map
dataSource - data source object
Returns:
generated report object
Throws:
JRException
fill
public JasperPrint fill(JasperReport jasperReport,
java.util.Map<java.lang.String,java.lang.Object> parameters,
JRDataSource dataSource)
throws JRException
Fills the compiled report design supplied as the first parameter and returns the generated report object.
Parameters:
jasperReport - compiled report design object to use for filling
parameters - report parameters map
dataSource - data source object
Returns:
generated report object
Throws:
JRException
fillReportToFile
public static java.lang.String fillReportToFile(java.lang.String sourceFileName,
java.util.Map<java.lang.String,java.lang.Object> params,
java.sql.Connection connection)
throws JRException
Throws:
JRException
See Also:
fillToFile(String, Map, Connection)
fillReportToFile
public static java.lang.String fillReportToFile(java.lang.String sourceFileName,
java.util.Map<java.lang.String,java.lang.Object> params)
throws JRException
Throws:
JRException
See Also:
fillToFile(String, Map)
fillReportToFile
public static void fillReportToFile(java.lang.String sourceFileName,
java.lang.String destFileName,
java.util.Map<java.lang.String,java.lang.Object> params,
JasperFillManager (JasperReports 5.5.0 API) 07/12/2013
http://jasperreports.sourceforge.net/api/net/sf/jasperreports/engine/JasperFillManager.html 8 / 12
java.sql.Connection connection)
throws JRException
Throws:
JRException
See Also:
fillToFile(String, String, Map, Connection)
fillReportToFile
public static void fillReportToFile(java.lang.String sourceFileName,
java.lang.String destFileName,
java.util.Map<java.lang.String,java.lang.Object> params)
throws JRException
Throws:
JRException
See Also:
fillToFile(String, String, Map)
fillReportToFile
public static void fillReportToFile(JasperReport jasperReport,
java.lang.String destFileName,
java.util.Map<java.lang.String,java.lang.Object> parameters,
java.sql.Connection connection)
throws JRException
Throws:
JRException
See Also:
fillToFile(JasperReport, String, Map, Connection)
fillReportToFile
public static void fillReportToFile(JasperReport jasperReport,
java.lang.String destFileName,
java.util.Map<java.lang.String,java.lang.Object> parameters)
throws JRException
Throws:
JRException
See Also:
fillToFile(JasperReport, String, Map)
fillReport
public static JasperPrint fillReport(java.lang.String sourceFileName,
java.util.Map<java.lang.String,java.lang.Object> params,
java.sql.Connection connection)
throws JRException
Throws:
JRException
See Also:
fill(String, Map, Connection)
fillReport
public static JasperPrint fillReport(java.lang.String sourceFileName,
java.util.Map<java.lang.String,java.lang.Object> params)
throws JRException
Throws:
JRException
See Also:
fill(String, Map)
fillReportToStream
public static void fillReportToStream(java.io.InputStream inputStream,
java.io.OutputStream outputStream,
java.util.Map<java.lang.String,java.lang.Object> parameters,
java.sql.Connection connection)
throws JRException
Throws:
JRException
See Also:
JasperFillManager (JasperReports 5.5.0 API) 07/12/2013
http://jasperreports.sourceforge.net/api/net/sf/jasperreports/engine/JasperFillManager.html 9 / 12
fillToStream(InputStream, OutputStream, Map, Connection)
fillReportToStream
public static void fillReportToStream(java.io.InputStream inputStream,
java.io.OutputStream outputStream,
java.util.Map<java.lang.String,java.lang.Object> parameters)
throws JRException
Throws:
JRException
See Also:
fillToStream(InputStream, OutputStream, Map)
fillReportToStream
public static void fillReportToStream(JasperReport jasperReport,
java.io.OutputStream outputStream,
java.util.Map<java.lang.String,java.lang.Object> parameters,
java.sql.Connection connection)
throws JRException
Throws:
JRException
See Also:
fillToStream(JasperReport, OutputStream, Map, Connection)
fillReportToStream
public static void fillReportToStream(JasperReport jasperReport,
java.io.OutputStream outputStream,
java.util.Map<java.lang.String,java.lang.Object> parameters)
throws JRException
Throws:
JRException
See Also:
fillToStream(JasperReport, OutputStream, Map)
fillReport
public static JasperPrint fillReport(java.io.InputStream inputStream,
java.util.Map<java.lang.String,java.lang.Object> parameters,
java.sql.Connection connection)
throws JRException
Throws:
JRException
See Also:
fill(InputStream, Map, Connection)
fillReport
public static JasperPrint fillReport(java.io.InputStream inputStream,
java.util.Map<java.lang.String,java.lang.Object> parameters)
throws JRException
Throws:
JRException
See Also:
fill(InputStream, Map)
fillReport
public static JasperPrint fillReport(JasperReport jasperReport,
java.util.Map<java.lang.String,java.lang.Object> parameters,
java.sql.Connection connection)
throws JRException
Throws:
JRException
See Also:
fill(JasperReport, Map, Connection)
fillReport
public static JasperPrint fillReport(JasperReport jasperReport,
java.util.Map<java.lang.String,java.lang.Object> parameters)
throws JRException
JasperFillManager (JasperReports 5.5.0 API) 07/12/2013
http://jasperreports.sourceforge.net/api/net/sf/jasperreports/engine/JasperFillManager.html 10 / 12
throws JRException
Throws:
JRException
See Also:
fill(JasperReport, Map)
fillReportToFile
public static java.lang.String fillReportToFile(java.lang.String sourceFileName,
java.util.Map<java.lang.String,java.lang.Object> params,
JRDataSource dataSource)
throws JRException
Throws:
JRException
See Also:
fillToFile(String, Map, JRDataSource)
fillReportToFile
public static void fillReportToFile(java.lang.String sourceFileName,
java.lang.String destFileName,
java.util.Map<java.lang.String,java.lang.Object> params,
JRDataSource dataSource)
throws JRException
Throws:
JRException
See Also:
fillToFile(String, String, Map, JRDataSource)
fillReportToFile
public static void fillReportToFile(JasperReport jasperReport,
java.lang.String destFileName,
java.util.Map<java.lang.String,java.lang.Object> parameters,
JRDataSource dataSource)
throws JRException
Throws:
JRException
See Also:
fillToFile(JasperReport, String, Map, JRDataSource)
fillReport
public static JasperPrint fillReport(java.lang.String sourceFileName,
java.util.Map<java.lang.String,java.lang.Object> params,
JRDataSource dataSource)
throws JRException
Throws:
JRException
See Also:
fill(String, Map, JRDataSource)
fillReportToStream
public static void fillReportToStream(java.io.InputStream inputStream,
java.io.OutputStream outputStream,
java.util.Map<java.lang.String,java.lang.Object> parameters,
JRDataSource dataSource)
throws JRException
Throws:
JRException
See Also:
fillToStream(InputStream, OutputStream, Map, JRDataSource)
fillReportToStream
public static void fillReportToStream(JasperReport jasperReport,
java.io.OutputStream outputStream,
java.util.Map<java.lang.String,java.lang.Object> parameters,
JRDataSource dataSource)
throws JRException
Throws:
JRException
JasperFillManager (JasperReports 5.5.0 API) 07/12/2013
http://jasperreports.sourceforge.net/api/net/sf/jasperreports/engine/JasperFillManager.html 11 / 12
Overview Package Class Use Tree Deprecated Index Help
Prev Class Next Class Frames No Frames All Classes
Summary: Nested | Field | Constr | Method Detail: Field | Constr | Method
2001-2010 Jaspersoft Corporation www.jaspersoft.com
See Also:
fillToStream(JasperReport, OutputStream, Map, JRDataSource)
fillReport
public static JasperPrint fillReport(java.io.InputStream inputStream,
java.util.Map<java.lang.String,java.lang.Object> parameters,
JRDataSource dataSource)
throws JRException
Throws:
JRException
See Also:
fill(InputStream, Map, JRDataSource)
fillReport
public static JasperPrint fillReport(JasperReport jasperReport,
java.util.Map<java.lang.String,java.lang.Object> parameters,
JRDataSource dataSource)
throws JRException
Throws:
JRException
See Also:
fill(JasperReport, Map, JRDataSource)
setFileResolver
protected java.util.Map<java.lang.String,java.lang.Object> setFileResolver(java.io.File file,
java.util.Map<java.lang.String,java.lang.Object> params)
protected static Map setFileResolver(File file, Map params) { Map parameters = params; if (parameters == null) { parameters = new HashMap(); } if
(!parameters.containsKey(JRParameter.REPORT_FILE_RESOLVER)) { SimpleFileResolver fileResolver = new SimpleFileResolver( Arrays.asList(new File[]{file.getParentFile(), new File(".")})
); fileResolver.setResolveAbsolutePath(true); parameters.put( JRParameter.REPORT_FILE_RESOLVER, fileResolver ); } return parameters; } /**
JasperFillManager (JasperReports 5.5.0 API) 07/12/2013
http://jasperreports.sourceforge.net/api/net/sf/jasperreports/engine/JasperFillManager.html 12 / 12

You might also like