< prev index next >

src/java.base/share/classes/java/nio/charset/StandardCharsets.java

Print this page
rev 17642 : 8186517: sun.nio.cs.StandardCharsets$Aliases and Classes can be lazily loaded
Reviewed-by: sherman, martin, plevart

*** 39,57 **** } /** * Seven-bit ASCII, a.k.a. ISO646-US, a.k.a. the Basic Latin block of the * Unicode character set */ ! public static final Charset US_ASCII = Charset.forName("US-ASCII"); /** * ISO Latin Alphabet No. 1, a.k.a. ISO-LATIN-1 */ ! public static final Charset ISO_8859_1 = Charset.forName("ISO-8859-1"); /** * Eight-bit UCS Transformation Format */ ! public static final Charset UTF_8 = Charset.forName("UTF-8"); /** * Sixteen-bit UCS Transformation Format, big-endian byte order */ public static final Charset UTF_16BE = Charset.forName("UTF-16BE"); /** --- 39,57 ---- } /** * Seven-bit ASCII, a.k.a. ISO646-US, a.k.a. the Basic Latin block of the * Unicode character set */ ! public static final Charset US_ASCII = sun.nio.cs.US_ASCII.INSTANCE; /** * ISO Latin Alphabet No. 1, a.k.a. ISO-LATIN-1 */ ! public static final Charset ISO_8859_1 = sun.nio.cs.ISO_8859_1.INSTANCE; /** * Eight-bit UCS Transformation Format */ ! public static final Charset UTF_8 = sun.nio.cs.UTF_8.INSTANCE; /** * Sixteen-bit UCS Transformation Format, big-endian byte order */ public static final Charset UTF_16BE = Charset.forName("UTF-16BE"); /**
< prev index next >