Skip to content

Commit 3e12833

Browse files
author
Gary Gregory
committed
Add Javadoc see tags.
1 parent 82cb5d4 commit 3e12833

3 files changed

Lines changed: 3 additions & 1 deletion

File tree

src/main/java/org/apache/commons/io/FileUtils.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2372,6 +2372,7 @@ public static void moveToDirectory(final File src, final File destDir, final boo
23722372
* @param file the File.
23732373
* @return a new OutputStream.
23742374
* @throws IOException if an I/O error occurs.
2375+
* @see PathUtils#newOutputStream(Path, boolean)
23752376
* @since 2.12.0
23762377
*/
23772378
public static OutputStream newOutputStream(final File file, final boolean append) throws IOException {

src/main/java/org/apache/commons/io/file/PathUtils.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -843,6 +843,7 @@ public static DirectoryStream<Path> newDirectoryStream(final Path dir, final Pat
843843
*
844844
* @return a new OutputStream.
845845
* @throws IOException if an I/O error occurs.
846+
* @see Files#newOutputStream(Path, OpenOption...)
846847
* @since 2.12.0
847848
*/
848849
public static OutputStream newOutputStream(final Path path, final boolean append) throws IOException {

src/main/java/org/apache/commons/io/output/FileWriterWithEncoding.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ private static Writer initWriter(final File file, final Object encoding, final b
6464
OutputStream stream = null;
6565
final boolean fileExistedAlready = file.exists();
6666
try {
67-
stream = FileUtils.newOutputStream(file, append);
67+
stream = FileUtils.openOutputStream(file, append);
6868
if (encoding == null || encoding instanceof Charset) {
6969
return new OutputStreamWriter(stream, Charsets.toCharset((Charset) encoding));
7070
}

0 commit comments

Comments
 (0)