Skip to content
This repository was archived by the owner on Apr 24, 2023. It is now read-only.
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion src/java.base/share/classes/java/nio/file/Files.java
Original file line number Diff line number Diff line change
Expand Up @@ -2938,7 +2938,12 @@ public static BufferedReader newBufferedReader(Path path) throws IOException {
* a size of {@code 0} if it exists.
*
* <p> The {@code Writer} methods to write text throw {@code IOException}
* if the text cannot be encoded using the specified charset.
* if the text cannot be encoded using the specified charset. Due to
* buffering, an {@code IOException} caused by an encoding error
* (unmappable-character or malformed-input) may be thrown when {@linkplain
* BufferedWriter#write(char[],int,int) writing}, {@linkplain
* BufferedWriter#flush flushing}, or {@linkplain BufferedWriter#close
* closing} the buffered writer.
*
* @param path
* the path to the file
Expand Down