jdk/src/java.base/share/classes/java/io/OutputStreamWriter.java
changeset 32033 bf24e33c7919
parent 25859 3317bb8137f4
child 34390 feb9879cd993
equal deleted inserted replaced
32032:22badc53802f 32033:bf24e33c7919
    51  * Writer out
    51  * Writer out
    52  *   = new BufferedWriter(new OutputStreamWriter(System.out));
    52  *   = new BufferedWriter(new OutputStreamWriter(System.out));
    53  * </pre>
    53  * </pre>
    54  *
    54  *
    55  * <p> A <i>surrogate pair</i> is a character represented by a sequence of two
    55  * <p> A <i>surrogate pair</i> is a character represented by a sequence of two
    56  * <tt>char</tt> values: A <i>high</i> surrogate in the range '&#92;uD800' to
    56  * {@code char} values: A <i>high</i> surrogate in the range '&#92;uD800' to
    57  * '&#92;uDBFF' followed by a <i>low</i> surrogate in the range '&#92;uDC00' to
    57  * '&#92;uDBFF' followed by a <i>low</i> surrogate in the range '&#92;uDC00' to
    58  * '&#92;uDFFF'.
    58  * '&#92;uDFFF'.
    59  *
    59  *
    60  * <p> A <i>malformed surrogate element</i> is a high surrogate that is not
    60  * <p> A <i>malformed surrogate element</i> is a high surrogate that is not
    61  * followed by a low surrogate or a low surrogate that is not preceded by a
    61  * followed by a low surrogate or a low surrogate that is not preceded by a
   159      * otherwise the encoding's canonical name is returned.
   159      * otherwise the encoding's canonical name is returned.
   160      *
   160      *
   161      * <p> If this instance was created with the {@link
   161      * <p> If this instance was created with the {@link
   162      * #OutputStreamWriter(OutputStream, String)} constructor then the returned
   162      * #OutputStreamWriter(OutputStream, String)} constructor then the returned
   163      * name, being unique for the encoding, may differ from the name passed to
   163      * name, being unique for the encoding, may differ from the name passed to
   164      * the constructor.  This method may return <tt>null</tt> if the stream has
   164      * the constructor.  This method may return {@code null} if the stream has
   165      * been closed. </p>
   165      * been closed. </p>
   166      *
   166      *
   167      * @return The historical name of this encoding, or possibly
   167      * @return The historical name of this encoding, or possibly
   168      *         <code>null</code> if the stream has been closed
   168      *         <code>null</code> if the stream has been closed
   169      *
   169      *