Java IO: Writer
Writer class is the base class for all
Writer's in the Java IO API.
Writer is like an
OutputStream except that it is character based rather
than byte based. In other words, a
Writer is intended for writing text, whereas an
OutputStream is intended for writing raw bytes.
You will normally use a
Writer subclass rather than a
FileWriter, plus many others. For a full overview of
Writer's see the
Java IO Class Overview Table.
Writer's and Destinations
Writer is typically connected to some destination of data like a file, char array, network socket
etc. This is also explained in more detail in the Java IO Overview text.