mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 14:54:52 +02:00
8308016: Use snippets in java.io package
Reviewed-by: rriggs
This commit is contained in:
parent
e9320f31dc
commit
710453c676
20 changed files with 152 additions and 132 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue