public PrintWriter (OutputStream out, boolean autoFlush, Charset charset)

Creates a new PrintWriter from an existing OutputStream. This convenience constructor creates the necessary intermediate OutputStreamWriter, which will convert characters into bytes using the specified charset.

Parameters:
out    An output stream
autoFlush    A boolean; if true, the println, printf, or format methods will flush the output buffer
charset     A charset

Since:  10