Back to the home page of this site

morterboard

Java2 Certification
Tutorial

 

You can discuss this topic with others at http://www.jchq.net/discus
Read reviews and buy a Java Certification book at http://www.jchq.net/bookreviews/jcertbooks.htm


11) The java.io package

Objective 3)

Distinguish between conditions under which platform default encoding conversion should be used and conditions under which a specific conversion should be used.

This could be a "bondage and discipline" type of objective. By this I mean that some purists might take the attitude that you should always specify the encoding conversion because you never know where, when and how your program will be used. It was because so many programmers assumed that the code they wrote that would never have to cope with the year 2,000 that there is such a mess at the moment. Well it's a well paying mess for some programmers.


If you take a more benign view, this objective asks you identify if your code is likely to ever have to deal with anything but the default encoding. If your home default encoding is not ISO-LATIN-1 and you consider that English is the international language of Business, or you may need to deal with other character sets, then take advantage of the ability to do specific conversions.

If some of this means nothing to you, re-read the previous section about the Reader and Writer classes.

Other sources on this topic

Sun documentation on internationalisation
http://java.sun.com/docs/books/tutorial/i18n/text/stream.html
http://java.sun.com/products/jdk/1.1/docs/guide/intl/
http://java.sun.com/docs/books/tutorial/i18n/index.html

 

Last updated
09 Oct 2000
copyright © Marcus Green 2000
most recent version at www.jchq.net