Java File to OutputStream openOutputStream(File file)

Here you can find the source of openOutputStream(File file)

Description

open Output Stream

License

Open Source License

Parameter

Parameter Description
file a parameter

Exception

Parameter Description
IOException an exception

Declaration

public static OutputStream openOutputStream(File file) throws IOException 

Method Source Code

//package com.java2s;

import java.io.File;

import java.io.FileOutputStream;

import java.io.IOException;

import java.io.OutputStream;

public class Main {
    /**//from w  ww . j  ava 2 s. c o m
     * @param file
     * @return
     * @throws IOException
     */
    public static OutputStream openOutputStream(File file) throws IOException {
        return new FileOutputStream(file);
    }
}

Related

  1. newOutputStream()
  2. newOutputStream(File file)
  3. newOutputStream(File file)
  4. openOutputStream(File file)
  5. openOutputStream(File file)
  6. openOutputStream(File file)
  7. openOutputStream(File file, boolean append, boolean gzip)
  8. openOutputStream(File file, int bufferSize)
  9. openOutputStream(String filePath)