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

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


  public static void createStreamHTML(final MasterReport report)
      throws Exception
  {
    try
    {
      HtmlReportUtil.createStreamHTML(report, new NullOutputStream());
    }
    catch (ReportParameterValidationException e)
    {
      Assert.fail();
    }
View Full Code Here


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

        throw new NullPointerException();
      }

      try
      {
        final ZipRepository zipRepository = new ZipRepository(new NullOutputStream());
        final ContentLocation root = zipRepository.getRoot();
        final ContentLocation data = RepositoryUtilities.createLocation
            (zipRepository, RepositoryUtilities.splitPath("data", "/"));

        final PageableHtmlOutputProcessor outputProcessor = new PageableHtmlOutputProcessor(report.getConfiguration());
View Full Code Here

  {
    final LocalFontRegistry localFontRegistry = new LocalFontRegistry();
    localFontRegistry.initialize();

    final InterceptingXmlPageOutputProcessor outputProcessor = new InterceptingXmlPageOutputProcessor
        (new NullOutputStream(), new XmlPageOutputProcessorMetaData(localFontRegistry));
    outputProcessor.setFlowSelector(new SinglePageFlowSelector(page, false));
    final PageableReportProcessor proc = new PageableReportProcessor(report, outputProcessor);
    proc.processReport();

    if (outputProcessor.getLogicalPageBox() == null)
View Full Code Here

  {
    final LocalFontRegistry localFontRegistry = new LocalFontRegistry();
    localFontRegistry.initialize();

    final InterceptingXmlPageOutputProcessor outputProcessor = new InterceptingXmlPageOutputProcessor
        (new NullOutputStream(), new XmlPageOutputProcessorMetaData(localFontRegistry));
    outputProcessor.setFlowSelector(new StrictMultiPageFlowSelector(false, maxPage, page));
    final PageableReportProcessor proc = new PageableReportProcessor(report, outputProcessor);
    proc.processReport();

    if (outputProcessor.getLogicalPageBox() == null)
View Full Code Here

  {
    final LocalFontRegistry localFontRegistry = new LocalFontRegistry();
    localFontRegistry.initialize();

    final InterceptingXmlPageOutputProcessor outputProcessor = new InterceptingXmlPageOutputProcessor
        (new NullOutputStream(), new XmlPageOutputProcessorMetaData(localFontRegistry));
    outputProcessor.setFlowSelector(new MultiPageFlowSelector(false, page));
    final PageableReportProcessor proc = new PageableReportProcessor(report, outputProcessor);
    proc.processReport();

View Full Code Here

  {
    final LocalFontRegistry localFontRegistry = new LocalFontRegistry();
    localFontRegistry.initialize();

    final InterceptingXmlPageOutputProcessor outputProcessor = new InterceptingXmlPageOutputProcessor
        (new NullOutputStream(), new XmlPageOutputProcessorMetaData(localFontRegistry));
    outputProcessor.setFlowSelector(new StrictMultiPageFlowSelector(false, maxPage, page));
    final PageableReportProcessor proc = new PageableReportProcessor(report, outputProcessor);
    proc.processReport();

    List<LogicalPageBox> pages = outputProcessor.getPages();
View Full Code Here

  {
    final LocalFontRegistry localFontRegistry = new LocalFontRegistry();
    localFontRegistry.initialize();

    final InterceptingXmlTableOutputProcessor outputProcessor = new InterceptingXmlTableOutputProcessor
        (new NullOutputStream(), new XmlTableOutputProcessorMetaData
            (XmlTableOutputProcessorMetaData.PAGINATION_MANUAL, localFontRegistry));
    outputProcessor.setFlowSelector(new SinglePageFlowSelector(page, true));
    final ReportProcessor proc = new FlowReportProcessor(report, outputProcessor);
    proc.processReport();
View Full Code Here

   * @param report the report.
   * @return true or false.
   */
  public static boolean createPDF(final MasterReport report) throws ReportProcessingException
  {
    final 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

  {
    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

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.