|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.jrefinery.report.io.ext.writer.ReportConverter
A utility class for converting XML report definitions from the old format to the new format.
| Constructor Summary | |
ReportConverter()
Default constructor. |
|
| Method Summary | |
void |
convertReport(java.io.File in,
java.io.File out,
java.lang.String encoding)
Parses a report from the old version of the XML report format, and writes a file in the new XML report format. |
void |
convertReport(java.lang.String inName,
java.lang.String outFile,
java.lang.String encoding)
Parses a report from the old version of the XML report format, and writes a file in the new XML report format. |
void |
convertReport(java.net.URL in,
java.net.URL contentBase,
java.io.Writer w,
java.lang.String encoding)
Parses a report from the old version of the XML report format, and writes a file in the new XML report format. |
java.net.URL |
findReport(java.lang.String name)
Returns the URL of a report. |
static void |
main(java.lang.String[] args)
The starting point for the conversion utility. |
void |
write(JFreeReport report,
java.io.Writer w,
java.net.URL contentBase,
java.lang.String encoding)
Writes a report in the new XML format. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public ReportConverter()
| Method Detail |
public void write(JFreeReport report,
java.io.Writer w,
java.net.URL contentBase,
java.lang.String encoding)
throws java.io.IOException,
ReportWriterException
report - the report.w - a character stream writer.contentBase - the content base for creating relative URLs.encoding - the encoding of the generated file.
java.io.IOException - if there is an I/O problem.
ReportWriterException - if there were problems while serializing
the report definition.
public java.net.URL findReport(java.lang.String name)
throws java.io.IOException
name - the report name.
null).
java.io.IOException - if there is an I/O problem.
public void convertReport(java.lang.String inName,
java.lang.String outFile,
java.lang.String encoding)
throws java.io.IOException,
ReportWriterException
inName - the input report file.outFile - the output report file.encoding - the encoding of the generated file.
java.io.IOException - if there is an I/O problem.
ReportWriterException - if there is a problem writing the report.
public void convertReport(java.io.File in,
java.io.File out,
java.lang.String encoding)
throws java.io.IOException,
ReportWriterException
in - the input report file.out - the output report file.encoding - the encoding of the generated file.
java.io.IOException - if there is an I/O problem.
ReportWriterException - if there is a problem writing the report.
public void convertReport(java.net.URL in,
java.net.URL contentBase,
java.io.Writer w,
java.lang.String encoding)
throws java.io.IOException,
ReportWriterException
in - the input resource from where to read the reportcontentBase - the contentbase where the new report will be stored.w - the report writerencoding - the encoding of the generated file.
java.io.IOException - if there is an I/O problem.
ReportWriterException - if there is a problem writing the report.
public static void main(java.lang.String[] args)
throws java.lang.Exception
args - command line arguments.
java.lang.Exception - if there is any problem.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||