src/share/classes/java/nio/charset/Charset.java

Print this page
rev 3858 : 4884238: Adds java.nio.charset.Charsets to provide static final constants for the standard charsets. In addition a static final constant is provided for the platform default charset.

*** 141,150 **** --- 141,152 ---- * previous canonical name be made into an alias. * * * <h4>Standard charsets</h4> * + * <a name="standard"> + * * <p> Every implementation of the Java platform is required to support the * following standard charsets. Consult the release documentation for your * implementation to see if any other charsets are supported. The behavior * of such optional charsets may differ between implementations. *
*** 603,612 **** --- 605,615 ---- * operating system. * * @return A charset object for the default charset * * @since 1.5 + * @see Charsets.DEFAULT */ public static Charset defaultCharset() { if (defaultCharset == null) { synchronized (Charset.class) { String csn = AccessController.doPrivileged(