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

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


  public void testLoadAndSaveForEdit() throws Exception
  {
    URL source = getClass().getResource("Prd-4542.prpt");
    ResourceManager mgr = new ResourceManager();
    MasterReport report = loadReport(source, mgr);
    BundleWriter.writeReportToZipStream(report, new NullOutputStream());
  }
View Full Code Here


  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 createXmlPageable(final MasterReport report)
      throws Exception
  {
    XmlPageReportUtil.createXml(report, new NullOutputStream());
  }
View Full Code Here

  }

  public static void createXmlFlow(final MasterReport report)
      throws Exception
  {
    XmlTableReportUtil.createFlowXML(report, new NullOutputStream());
  }
View Full Code Here

  }

  public static void createXmlStream(final MasterReport report)
      throws Exception
  {
    XmlTableReportUtil.createStreamXML(report, new NullOutputStream());
  }
View Full Code Here

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

  public static void createDataCSV(final MasterReport report)
      throws Exception
  {
    try
    {
      CSVDataReportUtil.createCSV(report, new NullOutputStream(), "UTF-8");
    }
    catch (ReportParameterValidationException e)
    {
      Assert.fail();
    }
View Full Code Here

      throws Exception
  {
    try
    {
      final XMLProcessor pr = new XMLProcessor(report);
      final Writer fout = new BufferedWriter(new OutputStreamWriter(new NullOutputStream(), "UTF-8"));
      pr.setWriter(fout);
      pr.processReport();
      fout.flush();
    }
    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)
    {
      Assert.fail();
    }
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.