mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 06:45:07 +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
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (c) 1996, 2022, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 1996, 2023, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
|
@ -46,10 +46,9 @@ import sun.nio.cs.StreamEncoder;
|
|||
* <p> For top efficiency, consider wrapping an OutputStreamWriter within a
|
||||
* BufferedWriter so as to avoid frequent converter invocations. For example:
|
||||
*
|
||||
* <pre>
|
||||
* Writer out
|
||||
* = new BufferedWriter(new OutputStreamWriter(anOutputStream));
|
||||
* </pre>
|
||||
* {@snippet lang=java :
|
||||
* Writer out = new BufferedWriter(new OutputStreamWriter(anOutputStream));
|
||||
* }
|
||||
*
|
||||
* <p> A <i>surrogate pair</i> is a character represented by a sequence of two
|
||||
* {@code char} values: A <i>high</i> surrogate in the range '\uD800' to
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue