Thejava.io
package has been extended with character streams,Reader
andWriter
and their subclasses, which are like 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 Using Input and Output Streams section have been rewritten to use the newReader
andWriter
classes. See the corresponding JDK 1.1 note and changes file for each example.