Package java.io

Examples of java.io.BufferedOutputStream


    }

    OutputStream out = null;
    try
    {
      out = new BufferedOutputStream(new FileOutputStream(filename));
      createZIPHTML(report, out, "report");
      out.close();
      out = null;
    }
    catch (IOException ioe)
View Full Code Here


    }

    OutputStream fout = null;
    try
    {
      fout = new BufferedOutputStream(new FileOutputStream(filename));

      final TextFilePrinterDriver pc = new TextFilePrinterDriver(fout, charsPerInch, linesPerInch);
      final String lineSeparator = report.getReportConfiguration().getConfigProperty("line.separator", "\n");
      pc.setEndOfLine(lineSeparator.toCharArray());
      pc.setEndOfPage(lineSeparator.toCharArray());
View Full Code Here

      throw new NullPointerException();
    }
    OutputStream fout = null;
    try
    {
      fout = new BufferedOutputStream(new FileOutputStream(filename));
      createPlainText(report, fout, charsPerInch, linesPerInch, null);
      fout.close();
      fout = null;
    }
    finally
View Full Code Here

      throw new NullPointerException();
    }

    final AbstractReportDefinition report = state.getReport();
    final BundleWriterState layoutFileState = new BundleWriterState(state, "layout.xml");
    final OutputStream outputStream = new BufferedOutputStream(bundle.createEntry(layoutFileState.getFileName(),
        "text/xml"));
    final DefaultTagDescription tagDescription = new DefaultTagDescription(
        ClassicEngineBoot.getInstance().getGlobalConfig(), BundleXmlModule.TAG_DEF_PREFIX);
    final XmlWriter writer = new XmlWriter(new OutputStreamWriter(outputStream, "UTF-8"), tagDescription, "  ", "\n");
    writer.writeXmlDeclaration("UTF-8");
View Full Code Here

  {
    PageableReportProcessor proc = null;
    OutputStream fout = null;
    try
    {
      fout = new BufferedOutputStream(new FileOutputStream(targetFile));
      final PdfOutputProcessor outputProcessor = new PdfOutputProcessor(report.getConfiguration(), fout,
          report.getResourceManager());
      proc = new PageableReportProcessor(report, outputProcessor);
      if (progressListener != null)
      {
View Full Code Here

    }
    if (filename == null)
    {
      throw new NullPointerException();
    }
    final OutputStream fout = new BufferedOutputStream(new FileOutputStream(filename));
    try
    {
      createCSV(report, fout, encoding);
    }
    finally
    {
      fout.close();
    }
  }
View Full Code Here

      throw new NullPointerException();
    }
    OutputStream out = null;
    try
    {
      out = new BufferedOutputStream(new FileOutputStream(fileName));
      createXml(report, out);
      out.close();
      out = null;
      return true;
    }
View Full Code Here

    if (filename == null)
    {
      throw new NullPointerException();
    }

    OutputStream fout = new BufferedOutputStream(new FileOutputStream(filename));
    try
    {
      final FlowExcelOutputProcessor target =
          new FlowExcelOutputProcessor(report.getConfiguration(), fout, report.getResourceManager());
      target.setUseXlsxFormat(true);
      final FlowReportProcessor reportProcessor = new FlowReportProcessor(report, target);
      reportProcessor.processReport();
      reportProcessor.close();
      fout.close();
      fout = null;
    }
    finally
    {
      if (fout != null)
      {
        try
        {
          fout.close();
        }
        catch (Exception e)
        {
          // ignore
        }
View Full Code Here

    {
      throw new NullPointerException();
    }

    final File file = new File(filename);
    final OutputStream fout = new BufferedOutputStream(new FileOutputStream(file));
    try
    {
      createStreamXML(report, fout);
    }
    finally
    {
      fout.close();
    }
  }
View Full Code Here

    }

    report.getReportConfiguration().setConfigProperty
        ("org.pentaho.reporting.engine.classic.core.modules.output.table.base.StrictLayout", String.valueOf(strict));

    OutputStream fout = new BufferedOutputStream(new FileOutputStream(filename));
    try
    {
      final FlowExcelOutputProcessor target =
          new FlowExcelOutputProcessor(report.getConfiguration(), fout, report.getResourceManager());
      target.setUseXlsxFormat(true);
      final FlowReportProcessor reportProcessor = new FlowReportProcessor(report, target);
      reportProcessor.processReport();
      reportProcessor.close();
      fout.close();
      fout = null;
    }
    finally
    {
      if (fout != null)
      {
        try
        {
          fout.close();
        }
        catch (Exception e)
        {
          // ignore
        }
View Full Code Here

TOP

Related Classes of java.io.BufferedOutputStream

Copyright © 2015 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.