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

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


                                  MasterReport report,
                                  final Class exceptionType) throws Exception
  {
    try
    {
      PlainTextReportUtil.createPlainText(report, new NullOutputStream(), 10, 15);
    }
    catch (Exception e)
    {
      if (!(e.getClass() == exceptionType))
      {
View Full Code Here


   *
   * @return the output stream.
   */
  public OutputStream getOutputStream()
  {
    return new NullOutputStream();
  }
View Full Code Here

    this.data = data.clone();

    // some paranoid checks ..
    try
    {
      final DebuggingObjectOutputStream objectOutputStream = new DebuggingObjectOutputStream(new NullOutputStream());
      try
      {
        objectOutputStream.writeObject(this);
      }
      catch (NotSerializableException nse)
View Full Code Here

    final MasterReport report = (MasterReport) directly.getResource();


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

      final DebugFlowOutputProcessor outputProcessor = new DebugFlowOutputProcessor();
View Full Code Here

  public void testComplexCrosstab() throws ResourceException, ReportProcessingException
  {
    final MasterReport report = DebugReportRunner.parseGoldenSampleReport("Prd-4523.prpt");
    report.getReportConfiguration().setConfigProperty
        ("org.pentaho.reporting.engine.classic.core.modules.output.table.base.FailOnCellConflicts", "true");
    HtmlReportUtil.createStreamHTML(report, new NullOutputStream());
  }
View Full Code Here

  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

    mgr.registerDefaults();
    final Resource parsed = mgr.createDirectly(resource, MasterReport.class);
    final MasterReport report = (MasterReport) parsed.getResource();

    final PdfOutputProcessor outputProcessor =
        new TestPdfOutputProcessor(report.getConfiguration(), new NullOutputStream());
    final PageableReportProcessor reportProcessor = new PageableReportProcessor(report, outputProcessor);
    reportProcessor.processReport();
  }
View Full Code Here

    assertEquals(72 * 1000 / 9, calculateFontMetrics(9, 15).getCharWidth('m'));
  }

  private FontMetrics calculateFontMetrics(final int cpi, final int lpi)
  {
    final TextFilePrinterDriver pc = new TextFilePrinterDriver(new NullOutputStream(), cpi, lpi);
    final PageableTextOutputProcessor outputProcessor =
        new PageableTextOutputProcessor(pc, ClassicEngineBoot.getInstance().getGlobalConfig());
    outputProcessor.setEncoding("UTF-8");

    return outputProcessor.getMetaData().getFontMetrics(ElementDefaultStyleSheet.getDefaultStyle());
View Full Code Here

    assertEquals(6000, charWidth);
  }

  public void testPageSize () throws IOException
  {
    final TextFilePrinterDriver pc = new TextFilePrinterDriver(new NullOutputStream(), 12, 12);
    final Paper paper = PageFormatFactory.getInstance().createPaper(PageSize.A4);
    pc.startPage(paper, "ASCII");

    final PlainTextPage page = new PlainTextPage(paper, pc, "ASCII");
    final int width = page.getWidth();
View Full Code Here

  public void testLoadAndSavePlain() throws Exception
  {
    URL source = getClass().getResource("Prd-4542.prpt");
    ResourceManager mgr = new ResourceManager();
    MasterReport report = (MasterReport) mgr.createDirectly(source, MasterReport.class).getResource();
    BundleWriter.writeReportToZipStream(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.