Thejava.io
package has been extended with filtered character streams which are like filtered byte streams except that they read and write 16-bit Unicode characters rather than 8-bit bytes. Generally speaking, it is best to use the new character-stream classes. Each of the examples highlighted in the Working with Filtered Streams section have been rewritten to use the newReader
andWriter
classes. See the corresponding JDK 1.1 note and changes file for each example.