PrintWriter.PrintWriter
Class Overview | Class Members | This Package | All Packages
Syntax 1
public PrintWriter( Writer out )
Parameters
- out
A character-output stream
Description
Create a new PrintWriter, without automatic line flushing.
Syntax 2
public PrintWriter( Writer out**, boolean** autoFlush )
Parameters
- out
A character-output stream - autoFlush
A boolean; if true, the println() methods will flush the output buffer
Description
Create a new PrintWriter.
Syntax 3
public PrintWriter( OutputStream out )
Parameters
- out
An output stream
Description
Create a new PrintWriter, without automatic line flushing, from an existing OutputStream. This convenience constructor creates the necessary intermediate OutputStreamWriter, which will convert characters into bytes using the default character encoding.
See Also
Syntax 4
public PrintWriter( OutputStream out**, boolean** autoFlush )
Parameters
- out
An output stream - autoFlush
A boolean; if true, the println() methods will flush the output buffer
Description
Create 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.