![]() |
JDK 1.1 introduces two new classesCharArrayReader
and
CharArrayWriter
, which are similar to
ByteArrayInputStream
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 using
StringBufferInputStream
Finaly, JDK 1.1 introduces the new
StringWriter
class for which there is no
InputStream
equivalent.
![]() |