Package java.io

Examples of java.io.BufferedOutputStream


          {
            CSVTableExportTask.logger.warn("Can't create directories. Hoping and praying now.."); //$NON-NLS-1$
          }
        }
      }
      out = new BufferedOutputStream(new FileOutputStream(file));
      final StreamCSVOutputProcessor target = new StreamCSVOutputProcessor(report.getConfiguration(), out);
      final StreamReportProcessor reportProcessor = new StreamReportProcessor(report, target);
      if (progressDialog != null)
      {
        progressDialog.setModal(false);
View Full Code Here


          {
            ExcelExportTask.logger.warn("Can't create directories. Hoping and praying now.."); //$NON-NLS-1$
          }
        }
      }
      out = new BufferedOutputStream(new FileOutputStream(file));
      final FlowExcelOutputProcessor target =
          new FlowExcelOutputProcessor(report.getConfiguration(), out, report.getResourceManager());
      target.setUseXlsxFormat(false);
      final FlowReportProcessor reportProcessor = new FlowReportProcessor(report, target);
      if (progressDialog != null)
View Full Code Here

          {
            RTFExportTask.logger.warn("Can't create directories. Hoping and praying now.."); //$NON-NLS-1$
          }
        }
      }
      out = new BufferedOutputStream(new FileOutputStream(file));
      final StreamRTFOutputProcessor target =
          new StreamRTFOutputProcessor(report.getConfiguration(), out, report.getResourceManager());
      final StreamReportProcessor proc = new StreamReportProcessor(report, target);
      if (progressDialog != null)
      {
View Full Code Here

          // write it out ..
          final InputStream stream = new BufferedInputStream(resourceData.getResourceAsStream(resourceManager));
          try
          {
            final OutputStream outputStream = new BufferedOutputStream(item.getOutputStream());
            try
            {
              IOUtils.getInstance().copyStreams(stream, outputStream);
            }
            finally
            {
              outputStream.close();
            }
          }
          finally
          {
            stream.close();
View Full Code Here

      final ContentItem dataFile = dataLocation.createItem
          (dataNameGenerator.generateName(filename, data.getMimeType()));
      final String contentURL = urlRewriter.rewrite(documentContentItem, dataFile);

      // a png encoder is included in JCommon ...
      final OutputStream out = new BufferedOutputStream(dataFile.getOutputStream());
      try
      {
        out.write(data.getImageData());
        out.flush();
      }
      finally
      {
        out.close();
      }
      if (cacheKey != null)
      {
        knownImages.put(cacheKey, contentURL);
      }
View Full Code Here

    if (styleFile != null)
    {
      final String encoding = configuration.getConfigProperty
          (HtmlTableModule.ENCODING, EncodingRegistry.getPlatformDefaultEncoding());
      final Writer styleOut = new OutputStreamWriter
          (new BufferedOutputStream(styleFile.getOutputStream()), encoding);
      styleManager.write(styleOut);
      styleOut.flush();
      styleOut.close();

      if (isForceBufferedWriting() == false)
View Full Code Here

  public void run()
  {
    OutputStream out = null;
    try
    {
      out = new BufferedOutputStream(new FileOutputStream(targetFile));

      final ZipRepository zipRepository = new ZipRepository(out);
      final ContentLocation root = zipRepository.getRoot();
      final ContentLocation data = RepositoryUtilities.createLocation
          (zipRepository, RepositoryUtilities.splitPath(dataDirectory, "/")); //$NON-NLS-1$
View Full Code Here

          {
            PlainTextExportTask.logger.warn("Can't create directories. Hoping and praying now.."); //$NON-NLS-1$
          }
        }
      }
      out = new BufferedOutputStream(new FileOutputStream(file));

      final PageableTextOutputProcessor outputProcessor = new PageableTextOutputProcessor
          (getPrinterCommandSet(out), report.getConfiguration());
      proc = new PageableReportProcessor(report, outputProcessor);
View Full Code Here

    }


    final BundleWriterState styleFileState = new BundleWriterState(state, "styles.xml");

    final OutputStream outputStream = new BufferedOutputStream(bundle.createEntry(styleFileState.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

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

TOP

Related Classes of java.io.BufferedOutputStream

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.