Examples of NullOutputStream


Examples of org.pentaho.reporting.engine.classic.core.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

Examples of org.pentaho.reporting.engine.classic.core.util.NullOutputStream

  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

Examples of org.pentaho.reporting.engine.classic.core.util.NullOutputStream

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

    }
View Full Code Here

Examples of org.pentaho.reporting.engine.classic.core.util.NullOutputStream

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

    }
View Full Code Here

Examples of org.pentaho.reporting.engine.classic.core.util.NullOutputStream

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

    }
View Full Code Here

Examples of org.pentaho.reporting.engine.classic.core.util.NullOutputStream

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

    }
View Full Code Here

Examples of org.pentaho.reporting.engine.classic.core.util.NullOutputStream

   * @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);
      proc.processReport();
View Full Code Here

Examples of org.pentaho.reporting.engine.classic.core.util.NullOutputStream

    // Load the report
    final ReportGenerator generator = ReportGenerator.getInstance();
    final MasterReport report = generator.parseReport
        (ObjectUtilities.getResourceRelative("Pre437.xml", Pre437Test.class));
    // Create the report and export to the supplied output filename
    ExcelReportUtil.createXLS(report, new NullOutputStream());
  }
View Full Code Here

Examples of org.pentaho.reporting.engine.classic.core.util.NullOutputStream

  public void testDataSourceWriter() throws Exception
  {
    final ReportWriter writer = createWriter();
    final StaticDataSource ds = new StaticDataSource(new Line2D.Float());
    final ClassFactory cc = writer.getClassFactoryCollector();
    final Writer w = new OutputStreamWriter(new NullOutputStream(), "UTF-16");
    final XmlWriter xmlWriter = new XmlWriter(w);

    final AttributeList attList = new AttributeList();
    attList.addNamespaceDeclaration("", ExtParserModule.NAMESPACE);
    xmlWriter.writeTag(ExtParserModule.NAMESPACE, "testcase", attList, XmlWriter.OPEN);
View Full Code Here

Examples of org.pentaho.reporting.engine.classic.core.util.NullOutputStream

  private boolean isKeySerializable(final ResourceKey key)
  {
    try
    {
      final ObjectOutputStream oout = new ObjectOutputStream(new NullOutputStream());
      oout.writeObject(key);
      oout.close();
      return true;
    }
    catch (Exception e)
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.