JDK 1.1 introduces two new classesCharArrayReader
andCharArrayWriter
, which are similar toByteArrayInputStream
andByteArrayOutputStream
but work with characters instead of bytes. Generally speaking, it is best to use the new character-stream classes.Also, most JDK 1.1 programmers should probably use
StringReader
instead of usingStringBufferInputStream
Finaly, JDK 1.1 introduces the new
StringWriter
class for which there is noInputStream
equivalent.