mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 14:54:52 +02:00
8260265: UTF-8 by Default
Reviewed-by: alanb, rriggs
This commit is contained in:
parent
32048536e9
commit
7fc8540907
22 changed files with 385 additions and 201 deletions
|
@ -34,9 +34,9 @@ import sun.nio.cs.StreamDecoder;
|
|||
/**
|
||||
* An InputStreamReader is a bridge from byte streams to character streams: It
|
||||
* reads bytes and decodes them into characters using a specified {@link
|
||||
* java.nio.charset.Charset charset}. The charset that it uses
|
||||
* may be specified by name or may be given explicitly, or the platform's
|
||||
* {@link Charset#defaultCharset() default charset} may be accepted.
|
||||
* Charset charset}. The charset that it uses
|
||||
* may be specified by name or may be given explicitly, or the
|
||||
* {@link Charset#defaultCharset() default charset} may be used.
|
||||
*
|
||||
* <p> Each invocation of one of an InputStreamReader's read() methods may
|
||||
* cause one or more bytes to be read from the underlying byte-input stream.
|
||||
|
@ -54,7 +54,7 @@ import sun.nio.cs.StreamDecoder;
|
|||
*
|
||||
* @see BufferedReader
|
||||
* @see InputStream
|
||||
* @see java.nio.charset.Charset
|
||||
* @see Charset
|
||||
*
|
||||
* @author Mark Reinhold
|
||||
* @since 1.1
|
||||
|
@ -85,8 +85,7 @@ public class InputStreamReader extends Reader {
|
|||
* An InputStream
|
||||
*
|
||||
* @param charsetName
|
||||
* The name of a supported
|
||||
* {@link java.nio.charset.Charset charset}
|
||||
* The name of a supported {@link Charset charset}
|
||||
*
|
||||
* @throws UnsupportedEncodingException
|
||||
* If the named charset is not supported
|
||||
|
@ -145,7 +144,7 @@ public class InputStreamReader extends Reader {
|
|||
* @return The historical name of this encoding, or
|
||||
* {@code null} if the stream has been closed
|
||||
*
|
||||
* @see java.nio.charset.Charset
|
||||
* @see Charset
|
||||
*
|
||||
* @revised 1.4
|
||||
*/
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue