/** * Creates an output stream from a file name. * * @param append If true then data will be appended to the end of the file, if it already exists. * If false and a normal file already exists with this name the file will first be truncated * to zero length. * @return an output stream suitable for writing to the file. * @exception FileNotFoundException if the file exists but is a directory rather than a regular * file, does not exist but cannot be created, or cannot be opened for any other reason. */ public OutputStream getOutputStream(final boolean append) throws FileNotFoundException { return realFile.getOutputStream(append); }
/** * Creates an output stream from realFile. * * @return an output stream suitable for writing to the file. * @exception FileNotFoundException if the file exists but is a directory rather than a regular * file, does not exist but cannot be created, or cannot be opened for any other reason. */ public OutputStream getOutputStream() throws FileNotFoundException { return realFile.getOutputStream(); }