Lesson 10 | Java Writer class |
Objective | Familiarize yourself with the basic methods used to write text. |
java.io.Writer
class are deliberately similar to the methods of the java.io.OutputStream
class. However, rather than working with bytes, they work with char
data.Writer
class are:
write()
flush()
and close()
Writer
class also has a getEncoding()
method,
which returns a string containing the name of the encoding used by this writer.
public String getEncoding()