|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.jasperreports.engine.JasperCompileManager
public final class JasperCompileManager
Fa�ade class for compiling report designs into the ready-to-fill form and for getting the XML representation of report design objects for storage or network transfer.
JasperDesign
,
JasperReport
,
JRCompiler
,
JRVerifier
,
JRXmlLoader
,
JRXmlWriter
,
JRLoader
,
JRSaver
Method Summary | |
---|---|
JasperReport |
compile(java.io.InputStream inputStream)
Compiles the serialized report design object read from the supplied input stream and returns the generated compiled report design object. |
JasperReport |
compile(JasperDesign jasperDesign)
Compiles the report design object received as parameter and returns the generated compiled report design object. |
JasperReport |
compile(java.lang.String sourceFileName)
Compiles the XML report design file received as parameter, and returns the compiled report design object. |
static JasperReport |
compileReport(java.io.InputStream inputStream)
|
static JasperReport |
compileReport(JasperDesign jasperDesign)
|
static JasperReport |
compileReport(java.lang.String sourceFileName)
|
static void |
compileReportToFile(JasperDesign jasperDesign,
java.lang.String destFileName)
|
static java.lang.String |
compileReportToFile(java.lang.String sourceFileName)
|
static void |
compileReportToFile(java.lang.String sourceFileName,
java.lang.String destFileName)
|
static void |
compileReportToStream(java.io.InputStream inputStream,
java.io.OutputStream outputStream)
|
static void |
compileReportToStream(JasperDesign jasperDesign,
java.io.OutputStream outputStream)
|
void |
compileToFile(JasperDesign jasperDesign,
java.lang.String destFileName)
Compiles the report design object received as the first parameter, placing the result in the file specified by the second parameter. |
java.lang.String |
compileToFile(java.lang.String sourceFileName)
Compiles the XML report design file specified by the parameter. |
void |
compileToFile(java.lang.String sourceFileName,
java.lang.String destFileName)
Compiles the XML report design file received as the first parameter, placing the result in the file specified by the second parameter. |
void |
compileToStream(java.io.InputStream inputStream,
java.io.OutputStream outputStream)
Compiles the XML representation of the report design read from the supplied input stream and writes the generated compiled report design object to the output stream specified by the second parameter. |
void |
compileToStream(JasperDesign jasperDesign,
java.io.OutputStream outputStream)
Compiles the report design object represented by the first parameter and writes the generated compiled report design object to the output stream specified by the second parameter. |
JREvaluator |
getEvaluator(JasperReport jasperReport)
|
JREvaluator |
getEvaluator(JasperReport jasperReport,
JRCrosstab crosstab)
|
JREvaluator |
getEvaluator(JasperReport jasperReport,
JRDataset dataset)
|
static JasperCompileManager |
getInstance(JasperReportsContext jasperReportsContext)
|
static JREvaluator |
loadEvaluator(JasperReport jasperReport)
|
static JREvaluator |
loadEvaluator(JasperReport jasperReport,
JRCrosstab crosstab)
|
static JREvaluator |
loadEvaluator(JasperReport jasperReport,
JRDataset dataset)
|
java.util.Collection<JRValidationFault> |
verify(JasperDesign jasperDesign)
Verifies the validity and consistency of the report design object. |
static java.util.Collection<JRValidationFault> |
verifyDesign(JasperDesign jasperDesign)
|
static java.lang.String |
writeReportToXml(JRReport report)
|
static void |
writeReportToXmlFile(JRReport report,
java.lang.String destFileName)
|
static java.lang.String |
writeReportToXmlFile(java.lang.String sourceFileName)
|
static void |
writeReportToXmlFile(java.lang.String sourceFileName,
java.lang.String destFileName)
|
static void |
writeReportToXmlStream(java.io.InputStream inputStream,
java.io.OutputStream outputStream)
|
static void |
writeReportToXmlStream(JRReport report,
java.io.OutputStream outputStream)
|
java.lang.String |
writeToXml(JRReport report)
Generates the XML representation of the report design object supplied as parameter using the "UTF-8" enconding. |
void |
writeToXmlFile(JRReport report,
java.lang.String destFileName)
Generates the XML representation of the report design supplied as the first parameter and place it in the file specified by the second parameter. |
java.lang.String |
writeToXmlFile(java.lang.String sourceFileName)
Generates the XML representation of the report design loaded from the specified filename. |
void |
writeToXmlFile(java.lang.String sourceFileName,
java.lang.String destFileName)
Generates the XML representation of the report design loaded from the first file parameter and place it in the file specified by the second parameter. |
void |
writeToXmlStream(java.io.InputStream inputStream,
java.io.OutputStream outputStream)
Generates the XML representation of the serialized report design object read from the supplied input stream abd writes it to the specified output stream, using the "UTF-8" encoding. |
void |
writeToXmlStream(JRReport report,
java.io.OutputStream outputStream)
Generates the XML representation of the report design object supplied as parameter and writes it to the specified output stream, using the "UTF-8" encoding. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static JasperCompileManager getInstance(JasperReportsContext jasperReportsContext)
public java.lang.String compileToFile(java.lang.String sourceFileName) throws JRException
JasperReport
object representing the compiled report design,
having the same name as the report design as declared in the XML plus the *.jasper
extension,
located in the same directory as the XML source file.
sourceFileName
- XML source file name
JasperReport
object
JRException
public void compileToFile(java.lang.String sourceFileName, java.lang.String destFileName) throws JRException
JasperReport
object representing
the compiled report design.
sourceFileName
- XML source file namedestFileName
- file name to place the result into
JRException
public void compileToFile(JasperDesign jasperDesign, java.lang.String destFileName) throws JRException
JasperReport
object representing the compiled report design.
jasperDesign
- source report design objectdestFileName
- file name to place the compiled report design into
JRException
public JasperReport compile(java.lang.String sourceFileName) throws JRException
sourceFileName
- XML source file name
JRException
public void compileToStream(java.io.InputStream inputStream, java.io.OutputStream outputStream) throws JRException
inputStream
- XML source input streamoutputStream
- output stream to write the compiled report design to
JRException
public void compileToStream(JasperDesign jasperDesign, java.io.OutputStream outputStream) throws JRException
jasperDesign
- source report design objectoutputStream
- output stream to write the compiled report design to
JRException
public JasperReport compile(java.io.InputStream inputStream) throws JRException
inputStream
- XML source input stream
JRException
public JasperReport compile(JasperDesign jasperDesign) throws JRException
jasperDesign
- source report design object
JRException
JRCompiler
public java.util.Collection<JRValidationFault> verify(JasperDesign jasperDesign)
errors
, if problems are found in the report design.
jasperDesign
- report design object to verify
JRValidationFault
if problems are foundJRVerifier
public JREvaluator getEvaluator(JasperReport jasperReport, JRDataset dataset) throws JRException
JRException
public JREvaluator getEvaluator(JasperReport jasperReport, JRCrosstab crosstab) throws JRException
JRException
public JREvaluator getEvaluator(JasperReport jasperReport) throws JRException
JRException
public java.lang.String writeToXmlFile(java.lang.String sourceFileName) throws JRException
*.jasper.jrxml
extension, located in the same directory as
the source file.
sourceFileName
- source file name containing the report design object
JRException
public void writeToXmlFile(java.lang.String sourceFileName, java.lang.String destFileName) throws JRException
sourceFileName
- source file name containing the report design objectdestFileName
- output file name to write the XML report design representation to
JRException
public void writeToXmlFile(JRReport report, java.lang.String destFileName) throws JRException
report
- source report design objectdestFileName
- output file name to write the XML report design representation to
JRException
JRXmlWriter
public void writeToXmlStream(java.io.InputStream inputStream, java.io.OutputStream outputStream) throws JRException
inputStream
- source input stream to read the report design object fromoutputStream
- output stream to write the XML report design representation to
JRException
public void writeToXmlStream(JRReport report, java.io.OutputStream outputStream) throws JRException
report
- source report design objectoutputStream
- output stream to write the XML report design representation to
JRException
JRXmlWriter
public java.lang.String writeToXml(JRReport report)
report
- source report design object
JRXmlWriter
public static java.lang.String compileReportToFile(java.lang.String sourceFileName) throws JRException
JRException
compileToFile(String)
public static void compileReportToFile(java.lang.String sourceFileName, java.lang.String destFileName) throws JRException
JRException
compileToFile(String, String)
public static void compileReportToFile(JasperDesign jasperDesign, java.lang.String destFileName) throws JRException
JRException
compileToFile(JasperDesign, String)
public static JasperReport compileReport(java.lang.String sourceFileName) throws JRException
JRException
compile(String)
public static void compileReportToStream(java.io.InputStream inputStream, java.io.OutputStream outputStream) throws JRException
JRException
compileToStream(InputStream, OutputStream)
public static void compileReportToStream(JasperDesign jasperDesign, java.io.OutputStream outputStream) throws JRException
JRException
compileToStream(JasperDesign, OutputStream)
public static JasperReport compileReport(java.io.InputStream inputStream) throws JRException
JRException
compile(InputStream)
public static JasperReport compileReport(JasperDesign jasperDesign) throws JRException
JRException
compile(JasperDesign)
public static java.util.Collection<JRValidationFault> verifyDesign(JasperDesign jasperDesign)
verify(JasperDesign)
public static JREvaluator loadEvaluator(JasperReport jasperReport, JRDataset dataset) throws JRException
JRException
getEvaluator(JasperReport, JRDataset)
public static JREvaluator loadEvaluator(JasperReport jasperReport, JRCrosstab crosstab) throws JRException
JRException
getEvaluator(JasperReport, JRCrosstab)
public static JREvaluator loadEvaluator(JasperReport jasperReport) throws JRException
JRException
getEvaluator(JasperReport)
public static java.lang.String writeReportToXmlFile(java.lang.String sourceFileName) throws JRException
JRException
writeToXmlFile(String)
public static void writeReportToXmlFile(java.lang.String sourceFileName, java.lang.String destFileName) throws JRException
JRException
writeToXmlFile(String, String)
public static void writeReportToXmlFile(JRReport report, java.lang.String destFileName) throws JRException
JRException
writeToXmlFile(JRReport, String)
public static void writeReportToXmlStream(java.io.InputStream inputStream, java.io.OutputStream outputStream) throws JRException
JRException
writeToXmlStream(InputStream, OutputStream)
public static void writeReportToXmlStream(JRReport report, java.io.OutputStream outputStream) throws JRException
JRException
writeToXmlStream(JRReport, OutputStream)
public static java.lang.String writeReportToXml(JRReport report)
writeToXml(JRReport)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |