The Java character stream

One, Jifuryu

  When reading a text file using byte, there may be a slight problem, the face of Chinese characters, may not show the full character, it is because a Chinese character may occupy multiple bytes of storage. So Java provides several character classes, read and write data in units of characters, designed to handle text files.

Second, the character input stream [Reader]

Third, character-output stream [Writer]

Guess you like

Origin www.cnblogs.com/niujifei/p/11488822.html