java.iopackage has been extended with character streams,
Writerand 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 new
Writerclasses. See the corresponding JDK 1.1 note and changes file for each example.