Package org.pentaho.reporting.engine.classic.core.modules.output.fast.validator

Examples of org.pentaho.reporting.engine.classic.core.modules.output.fast.validator.ReportStructureValidator


  @Test
  public void testReport() throws ResourceException, ReportProcessingException, IOException
  {
    URL url = getClass().getResource("Prd-5129.prpt");
    MasterReport report = (MasterReport) new ResourceManager().createDirectly(url, MasterReport.class).getResource();
    ReportStructureValidator v = new ReportStructureValidator();
    Assert.assertTrue(v.isValidForFastProcessing(report));
    FastExcelReportUtil.processXls(report, new NullOutputStream());
  }
View Full Code Here


public class FastHtmlReportUtil
{
  public static void processStreamHtml(MasterReport report,
                                       OutputStream out) throws ReportProcessingException, IOException
  {
    ReportStructureValidator validator = new ReportStructureValidator();
    if (validator.isValidForFastProcessing(report) == false)
    {
      HtmlReportUtil.createStreamHTML(report, out);
      return;
    }
View Full Code Here

  {
  }

  public static void processXls(final MasterReport report, final OutputStream out) throws ReportProcessingException, IOException
  {
    ReportStructureValidator validator = new ReportStructureValidator();
    if (validator.isValidForFastProcessing(report) == false)
    {
      ExcelReportUtil.createXLS(report, out);
      return;
    }
View Full Code Here

    out.flush();
  }

  public static void processXlsx(final MasterReport report, final OutputStream out) throws ReportProcessingException, IOException
  {
    ReportStructureValidator validator = new ReportStructureValidator();
    if (validator.isValidForFastProcessing(report) == false)
    {
      ExcelReportUtil.createXLSX(report, out);
      return;
    }
View Full Code Here

  {
  }

  public static void process(MasterReport report, OutputStream out) throws ReportProcessingException, IOException
  {
    ReportStructureValidator validator = new ReportStructureValidator();
    if (validator.isValidForFastProcessing(report) == false)
    {
      CSVReportUtil.createCSV(report, out, null);
      return;
    }
View Full Code Here

          }
        }
      }
      out = new BufferedOutputStream(new FileOutputStream(file));

      ReportStructureValidator validator = new ReportStructureValidator();
      ReportProcessor reportProcessor;
      if (validator.isValidForFastProcessing(report) == false)
      {
        final FlowExcelOutputProcessor target =
            new FlowExcelOutputProcessor(report.getConfiguration(), out, report.getResourceManager());
        target.setUseXlsxFormat(false);
        reportProcessor = new FlowReportProcessor(report, target);
View Full Code Here

          }
        }
      }
      out = new BufferedOutputStream(new FileOutputStream(file));

      ReportStructureValidator validator = new ReportStructureValidator();
      ReportProcessor reportProcessor;
      if (validator.isValidForFastProcessing(report) == false)
      {
        final FlowExcelOutputProcessor target =
            new FlowExcelOutputProcessor(report.getConfiguration(), out, report.getResourceManager());
        target.setUseXlsxFormat(true);
        reportProcessor = new FlowReportProcessor(report, target);
View Full Code Here

        }
      }
      out = new BufferedOutputStream(new FileOutputStream(file));

      ReportProcessor reportProcessor;
      ReportStructureValidator validator = new ReportStructureValidator();
      if (validator.isValidForFastProcessing(report) == false)
      {
        final StreamCSVOutputProcessor target = new StreamCSVOutputProcessor(out);
        reportProcessor = new StreamReportProcessor(report, target);
      }
      else
View Full Code Here

      final ContentLocation targetRoot = targetRepository.getRoot();

//      final DummyRepository dataRepository = new DummyRepository();
//      final ContentLocation dataRoot = dataRepository.getRoot();
      ReportProcessor reportProcessor;
      ReportStructureValidator validator = new ReportStructureValidator();
      if (validator.isValidForFastProcessing(report) == false)
      {
        final HtmlOutputProcessor outputProcessor = new StreamHtmlOutputProcessor(report.getConfiguration());
        final HtmlPrinter printer = new AllItemsHtmlPrinter(report.getResourceManager());
        printer.setContentWriter(targetRoot, new DefaultNameGenerator(targetRoot, filename, suffix));
        printer.setDataWriter(null, null); //$NON-NLS-1$
View Full Code Here

TOP

Related Classes of org.pentaho.reporting.engine.classic.core.modules.output.fast.validator.ReportStructureValidator

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.