OutputStreamWriter is a Bridge between character streams and byte streams: the characters written for it can be decoded into bits using your specified code set.
When you are required to write text data into an output stream, e.g. file or network sockets, and set the encoding used for conversion, this class is especially helpful.