8308016: Use snippets in java.io package

Reviewed-by: rriggs
This commit is contained in:
Brian Burkhalter 2023-05-23 16:00:40 +00:00
parent e9320f31dc
commit 710453c676
20 changed files with 152 additions and 132 deletions

View file

@ -48,10 +48,9 @@ import jdk.internal.misc.VM;
* to wrap a BufferedWriter around any Writer whose write() operations may be
* costly, such as FileWriters and OutputStreamWriters. For example,
*
* <pre>
* PrintWriter out
* = new PrintWriter(new BufferedWriter(new FileWriter("foo.out")));
* </pre>
* {@snippet lang=java :
* PrintWriter out = new PrintWriter(new BufferedWriter(new FileWriter("foo.out")));
* }
*
* will buffer the PrintWriter's output to the file. Without buffering, each
* invocation of a print() method would cause characters to be converted into