PrintWriter.PrintWriter
Class Overview | Class Members |
This Package |
All Packages
public PrintWriter( Writer out )
Parameters
- out
- A character-output stream
Description
Create a new PrintWriter, without automatic line flushing.
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.
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
OutputStreamWriter
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.
See Also
OutputStreamWriter