Class FileWriter is used for output of character data to a disk file. Here is where it is in the hierarchy of Writer classes:
The arrows in this diagram show inheritance.
FileWriter is a kind of
which is a kind of
Writer, which is a kind of
When you read Java documentation,
you might need to look at several ancestors of a class you are interested in.
OutputStreamWriter has several methods you would like to use.
FileWriter object have these methods?