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
|
@ -47,10 +47,9 @@ import jdk.internal.misc.InternalLock;
|
|||
* operations may be costly, such as FileReaders and InputStreamReaders. For
|
||||
* example,
|
||||
*
|
||||
* <pre>
|
||||
* BufferedReader in
|
||||
* = new BufferedReader(new FileReader("foo.in"));
|
||||
* </pre>
|
||||
* {@snippet lang=java :
|
||||
* BufferedReader in = new BufferedReader(new FileReader("foo.in"));
|
||||
* }
|
||||
*
|
||||
* will buffer the input from the specified file. Without buffering, each
|
||||
* invocation of read() or readLine() could cause bytes to be read from the
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue