8180353: FileOutputStream documentation does not indicate properly whether files get truncated or not

Update documentation of FileOutputStream(String)

Reviewed-by: chegar, dfuchs
This commit is contained in:
Brian Burkhalter 2017-05-23 11:47:52 -07:00
parent b518bb5bcd
commit 0f5b1f5cf8

View File

@ -91,6 +91,10 @@ class FileOutputStream extends OutputStream
* 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.
* <p>
* @implSpec Invoking this constructor with the parameter {@code name} is
* equivalent to invoking {@link #FileOutputStream(String,boolean)
* new FileOutputStream(name, false)}.
*
* @param name the system-dependent filename
* @exception FileNotFoundException if the file exists but is a directory