Here you can find the source of getOutputStream(String path)
Parameter | Description |
---|---|
path | File path where output stream is to be opened. |
Parameter | Description |
---|---|
FileNotFoundException | an exception |
public static DataOutputStream getOutputStream(String path) throws FileNotFoundException
//package com.java2s; //License from project: Apache License import java.io.*; public class Main { /**//from w w w . ja v a2s . c om * Opens an output stream for the specified path. * * @param path File path where output stream is to be opened. * @return The output stream. * @throws FileNotFoundException */ public static DataOutputStream getOutputStream(String path) throws FileNotFoundException { return new DataOutputStream(new FileOutputStream(path)); } }