No more sun.io
Build 29 of JDK 6.0 is
notable for something it doesn’t have anymore: The sun.io package.
This package provided since JDK 1.1 the character encoding converters that
were accessed through methods on java.lang.String and several
classes in the java.io package. The sun.io package
has now been completely replaced with implementations using the newer java.nio.charset interfaces.
It’s likely that some developers have created additional classes in the sun.io package
to support encodings that the JRE didn’t support itself. Since J2SE 1.4,
of course, the platform has provided a better way for this: The service
provider interface in the java.nio.charset.spi package,
which lets anyone create character encoding converters that can be plugged
into any Java runtime. If you happen to rely on sun.io, this
would be a good time to migrate to the new SPI.
feed