Package java.io

Examples of java.io.BufferedOutputStream


  File resultsFile = createNewResultsFile(queryID, querySetID,
    getGenerateDir());
  OutputStream outputStream;
  try {
      FileOutputStream fos = new FileOutputStream(resultsFile);
      outputStream = new BufferedOutputStream(fos);
  } catch (IOException e) {
      throw new QueryTestFailedException(
        "Failed to open new results file: " + resultsFile.getPath() + ": " + e.getMessage()); //$NON-NLS-1$ //$NON-NLS-2$
  }
View Full Code Here


      File expectedResultFile, Throwable ex)
      throws QueryTestFailedException {
  OutputStream outputStream;
  try {
      FileOutputStream fos = new FileOutputStream(resultsFile);
      outputStream = new BufferedOutputStream(fos);
  } catch (IOException e) {
      throw new QueryTestFailedException(
        "Failed to open error results file: " + resultsFile.getPath() + ": " + e.getMessage()); //$NON-NLS-1$ //$NON-NLS-2$
  }
View Full Code Here

        }
        if (isEncrypted()) {
            initStore();
            out = new FileStoreOutputStream(store, this, compressionAlgorithm);
            // always use a big buffer, otherwise end-of-block is written a lot
            out = new BufferedOutputStream(out, Constants.IO_BUFFER_SIZE_COMPRESS);
        } else {
            OutputStream o = IOUtils.openFileOutputStream(file, false);
            out = new BufferedOutputStream(o, Constants.IO_BUFFER_SIZE);
            out = CompressTool.wrapOutputStream(out, compressionAlgorithm, SCRIPT_SQL);
        }
    }
View Full Code Here

    private ItemExporterUtilities utilities;
    private String schemaFile;
    private final int stepSize = 4;
   
    public XmlWriter(String filename, String schemaFile, ItemExporterSettings properties) throws IOException {
        this(new BufferedOutputStream(new FileOutputStream(filename)), filename, schemaFile, properties);
    }
View Full Code Here

    public void transform() throws Exception {
        FopFactory fopFactory = FopFactory.newInstance();
        FOUserAgent foUserAgent = fopFactory.newFOUserAgent();

        OutputStream out = new FileOutputStream(target);
        out = new BufferedOutputStream(out);
       
        try {
            Fop fop = fopFactory.newFop(MimeConstants.MIME_RTF, foUserAgent, out);
            TransformerFactory factory = TransformerFactory.newInstance();
           
View Full Code Here

        this.bos = bos;
    }

    protected XmlBaseWriter(String filename) throws IOException {
        FileOutputStream fos = new FileOutputStream(filename);
        bos = new BufferedOutputStream(fos);
    }   
View Full Code Here

    public void transform() throws Exception {
        FopFactory fopFactory = FopFactory.newInstance();
        FOUserAgent foUserAgent = fopFactory.newFOUserAgent();

        OutputStream out = new FileOutputStream(target);
        out = new BufferedOutputStream(out);
       
        try {
            Fop fop = fopFactory.newFop(MimeConstants.MIME_PDF, foUserAgent, out);
            TransformerFactory factory = TransformerFactory.newInstance();
           
View Full Code Here

  {
    ByteArrayOutputStream bout = new ByteArrayOutputStream();
    OutputStream out = null;
    try
    {
      out = new BufferedOutputStream(bout);
      PdfReportUtil.createPDF(report, out);
    }
    catch (Exception e)
    {
      logger.error ("Writing PDF failed.", e);
View Full Code Here

        this.settings = properties;
    }

    @Override
    protected void initialize() throws Exception {
        bos = new BufferedOutputStream(new FileOutputStream(file));
    }   
View Full Code Here

        }
       
        try {
            File file = new File(DataCrow.reportDir + "dictionary.txt");
            FileOutputStream fos = new FileOutputStream(file);
            BufferedOutputStream bos = new BufferedOutputStream(fos);
   
            bos.write(sb.toString().getBytes());
            bos.flush();
            bos.close();
        } catch (IOException e) {
            logger.error("Cannot save report dictionary to " + DataCrow.reportDir + "dictionary.txt", e);
        }
    }
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.