Here you can find the source of openOutputStream(File file)
Parameter | Description |
---|---|
file | a parameter |
Parameter | Description |
---|---|
IOException | an exception |
public static OutputStream openOutputStream(File file) throws IOException
//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); } }