Package org.pentaho.reporting.libraries.base.util

Examples of org.pentaho.reporting.libraries.base.util.NullOutputStream


  public static boolean createPlainText(final MasterReport report)
  {
    try
    {
      PlainTextReportUtil.createPlainText(report, new NullOutputStream(), 10, 15);
      return true;
    }
    catch (ReportParameterValidationException p)
    {
      return true;
View Full Code Here


  public static void createRTF(final MasterReport report)
      throws Exception
  {
    try
    {
      RTFReportUtil.createRTF(report, new NullOutputStream());
    }
    catch (IndexOutOfBoundsException ibe)
    {
      // this is a known iText bug that does not get fixed.
    }
View Full Code Here

  public static void createCSV(final MasterReport report)
      throws Exception
  {
    try
    {
      CSVReportUtil.createCSV(report, new NullOutputStream(), null);
    }
    catch (ReportParameterValidationException e)
    {

    }
View Full Code Here

  public static void createXLS(final MasterReport report)
      throws Exception
  {
    try
    {
      ExcelReportUtil.createXLS(report, new NullOutputStream());
    }
    catch (ReportParameterValidationException e)
    {

    }
View Full Code Here

  public static void createStreamHTML(final MasterReport report)
      throws Exception
  {
    try
    {
      HtmlReportUtil.createStreamHTML(report, new NullOutputStream());
    }
    catch (ReportParameterValidationException e)
    {

    }
View Full Code Here

  public static void createZIPHTML(final MasterReport report)
      throws Exception
  {
    try
    {
      HtmlReportUtil.createZIPHTML(report, new NullOutputStream(), "report.html");
    }
    catch (ReportParameterValidationException e)
    {

    }
View Full Code Here

   * @param report the report.
   * @return true or false.
   */
  public static boolean createPDF(final MasterReport report)
  {
    OutputStream out = new NullOutputStream();
    try
    {
      final PdfOutputProcessor outputProcessor = new PdfOutputProcessor(report.getConfiguration(), out,
          report.getResourceManager());
      final PageableReportProcessor proc = new PageableReportProcessor(report, outputProcessor);
View Full Code Here

    {
      return;
    }
    final MasterReport report = createTestReport();
    final FlowExcelOutputProcessor target = new ValidatingFlowExcelOutputProcessor
        (report.getConfiguration(), new NullOutputStream(), report.getResourceManager());
    target.setUseXlsxFormat(true);
    final FlowReportProcessor reportProcessor = new FlowReportProcessor(report, target);
    reportProcessor.processReport();
    reportProcessor.close();
View Full Code Here

    if (DebugReportRunner.isSkipLongRunTest())
    {
      return;
    }
    final MasterReport report = createTestReport();
    final StreamRepository targetRepository = new StreamRepository(new NullOutputStream());
    final ContentLocation targetRoot = targetRepository.getRoot();

    final HtmlOutputProcessor outputProcessor = new StreamHtmlOutputProcessor(report.getConfiguration());
    final HtmlPrinter printer = new ValidatingHtmlPrinter(report.getResourceManager());
    printer.setContentWriter(targetRoot, new DefaultNameGenerator(targetRoot, "index", "html"));
View Full Code Here

   *  Verifies report can run without an exception being thrown.
   */
  private void assertReportRuns(String message, MasterReport report) {
    try
    {
      PlainTextReportUtil.createPlainText(report, new NullOutputStream(), 10, 15);
    }
    catch (Exception e)
    {
      fail(message + "\n" + e.getMessage());
    }
View Full Code Here

TOP

Related Classes of org.pentaho.reporting.libraries.base.util.NullOutputStream

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.