public PrintWriter (OutputStream out, boolean autoFlush)

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

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

See also: