Java FileOutputStream Create getOutputStream(String file)

Here you can find the source of getOutputStream(String file)

Description

Return a buffered output stream stream for file.

License

Open Source License

Declaration

public static DataOutputStream getOutputStream(String file) throws IOException 

Method Source Code


//package com.java2s;
import java.io.*;

public class Main {
    /**/* ww  w.  j  a  v  a 2  s. co m*/
     * Return a buffered output stream stream for file.
     */
    public static DataOutputStream getOutputStream(String file) throws IOException {
        return getOutputStream(new File(file));
    }

    /**
     * Return a buffered output stream stream for f.
     */
    public static DataOutputStream getOutputStream(File f) throws IOException {
        return new DataOutputStream(new BufferedOutputStream(new FileOutputStream(f), 32676));
    }
}

Related

  1. getOutputStream(File file)
  2. getOutputStream(File file, String filePath)
  3. getOutputStream(final File file)
  4. getOutputStream(final File file)
  5. getOutputStream(final Object obj, final boolean append)
  6. getOutputStream(String filename)
  7. getOutputStream(String fileName)
  8. getOutputStream(String filename, Map map)
  9. getOutputStream(String filename, String dir)