Visual Studio 6.0

PrintStream.PrintStream

Class Overview | Class Members | This Package | All Packages

Syntax 1
public PrintStream( OutputStream out )
Parameters
out
The output stream to which values and objects will be printed
Description
Note: PrintStream() is deprecated. As of JDK 1.1, the preferred way to print text is via the PrintWriter class. Consider replacing code of the
form   PrintStream p = new PrintStream(out);
with   PrintWriter p = new PrintWriter(out);

Create a new print stream.

See Also
PrintWriter



Syntax 2
public PrintStream( OutputStream out, boolean autoFlush )
Parameters
out
The output stream to which values and objects will be printed
autoFlush
A boolean; if true, the output buffer will be flushed whenever a line is terminated or a newline character ('\n') is written
Description
Note: PrintStream() is deprecated. As of JDK 1.1, the preferred way to print text is via the PrintWriter class. Consider replacing code of the
form   PrintStream p = new PrintStream(out, autoFlush);
with   PrintWriter p = new PrintWriter(out, autoFlush);

Create a new PrintStream.

See Also
PrintWriter

Show: