Creates a file output stream to write to the file with the
specified name. A new <code>FileDescriptor</code> object is
created to represent this file connection.
<p>
First, if there is a security manager, its <code>checkWrite</code>
method is called with <code>name</code> as its argument.
<p>
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 then a <code>FileNotFoundException</code> is thrown.
@implSpec Invoking this constructor with the parameter {@code name} is
equivalent to invoking {@link #FileOutputStream(string,bool)
new FileOutputStream(name, false)}.
@param name the system-dependent filename
@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
@exception SecurityException if a security manager exists and its
<code>checkWrite</code> method denies write access
to the file.
@see java.lang.SecurityManager#checkWrite(java.lang.string)
Creates a file output stream to write to the file with the specified name. A new <code>FileDescriptor</code> object is created to represent this file connection. <p> First, if there is a security manager, its <code>checkWrite</code> method is called with <code>name</code> as its argument. <p> 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 then a <code>FileNotFoundException</code> is thrown.
@implSpec Invoking this constructor with the parameter {@code name} is equivalent to invoking {@link #FileOutputStream(string,bool) new FileOutputStream(name, false)}.
@param name the system-dependent filename @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 @exception SecurityException if a security manager exists and its <code>checkWrite</code> method denies write access to the file. @see java.lang.SecurityManager#checkWrite(java.lang.string)