PrintStream
Creates a new print stream, with the specified OutputStream, line flushing and charset. This convenience constructor creates the necessary intermediate java.io.OutputStreamWriter, which will encode characters using the provided charset.
Since
10
Parameters
out
The output stream to which values and objects will be printed
autoFlush
Whether the output buffer will be flushed whenever a byte array is written, one of the println methods is invoked, or a newline character or byte ('\n') is written
charset
A charset