I understand the other Reader
subclasses in java.io, but I can't think of a use case where I'd need a CharArrayReader
or a StringReader
when I already have data available as String
or char[]
.
Is it because of compatibility? To "feed" a String
or char[]
into something that expects Reader
as parameter?