Class PlainTextReportUtil
- java.lang.Object
-
- org.pentaho.reporting.engine.classic.core.modules.output.pageable.plaintext.PlainTextReportUtil
-
public final class PlainTextReportUtil extends Object
An utility class to write an report into a plain text file. If you need more control over the writing process, you will have to implement your own write method.- Author:
- Thomas Morgner
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
createPlainText(MasterReport report, OutputStream outputStream)
static void
createPlainText(MasterReport report, OutputStream outputStream, float charsPerInch, float linesPerInch)
static void
createPlainText(MasterReport report, OutputStream outputStream, float charsPerInch, float linesPerInch, String encoding)
static void
createPlainText(MasterReport report, String filename)
static void
createPlainText(MasterReport report, String filename, float charsPerInch, float linesPerInch)
Saves a report to plain text format.static void
createTextFile(MasterReport report, String filename)
static void
createTextFile(MasterReport report, String filename, float charsPerInch, float linesPerInch)
Saves a report to plain text format.static byte[]
getInitSequence(org.pentaho.reporting.libraries.base.config.Configuration report)
-
-
-
Method Detail
-
createTextFile
public static void createTextFile(MasterReport report, String filename, float charsPerInch, float linesPerInch) throws IOException, ReportProcessingException
Saves a report to plain text format.- Parameters:
report
- the report.filename
- target file name.charsPerInch
- chars per inch for the output.linesPerInch
- lines per inch for the output.- Throws:
ReportProcessingException
- if the report processing failed.IOException
- if there was an IOerror while processing the report.
-
createTextFile
public static void createTextFile(MasterReport report, String filename) throws IOException, ReportProcessingException
- Throws:
IOException
ReportProcessingException
-
createPlainText
public static void createPlainText(MasterReport report, String filename) throws IOException, ReportProcessingException
- Throws:
IOException
ReportProcessingException
-
createPlainText
public static void createPlainText(MasterReport report, String filename, float charsPerInch, float linesPerInch) throws IOException, ReportProcessingException
Saves a report to plain text format.- Parameters:
report
- the report.filename
- target file name.charsPerInch
- chars per inch for the output.linesPerInch
- lines per inch for the output.- Throws:
ReportProcessingException
- if the report processing failed.IOException
- if there was an IOerror while processing the report.
-
createPlainText
public static void createPlainText(MasterReport report, OutputStream outputStream) throws ReportProcessingException
- Throws:
ReportProcessingException
-
createPlainText
public static void createPlainText(MasterReport report, OutputStream outputStream, float charsPerInch, float linesPerInch) throws ReportProcessingException
- Throws:
ReportProcessingException
-
createPlainText
public static void createPlainText(MasterReport report, OutputStream outputStream, float charsPerInch, float linesPerInch, String encoding) throws ReportProcessingException
- Throws:
ReportProcessingException
-
getInitSequence
public static byte[] getInitSequence(org.pentaho.reporting.libraries.base.config.Configuration report) throws UnsupportedEncodingException
- Throws:
UnsupportedEncodingException
-
-