22.22
java.io.PrintStream
THE PACKAGE JAVA.IO
22.22 The Class
java.io.PrintStream
A
PrintStream
adds functionality to another output stream namely, the ability
to print representations of various data values conveniently. Two other features are
provided as well. Unlike other output streams, a
PrintStream
never throws an
IOException
; instead, exceptional situations merely set an internal flag that can
be tested by the
checkError
method. Optionally, a
PrintStream
can be created
so as to autoflush ; this means that after an array of bytes is written, or after a
single byte equal to
\n
is written, the
flush
method is automatically invoked.
public class PrintStream extends FilterOutputStream {
public PrintStream(OutputStream out);
public PrintStream(OutputStream out, boolean autoflush);
public void write(int b);
public void write(byte[] b, int off, int len)
throws NullPointerException, IndexOutOfBoundsException;
public void flush();
public void close();
public boolean checkError();
public void print(Object obj);
public void print(String s);
public void print(char[] s) throws NullPointerException;
public void print(boolean b);
public void print(char c);
public void print(int i);
public void print(long l);
public void print(float f);
public void print(double d);
public void println();
public void println(Object obj);
public void println(String s);
public void println(char[] s) throws NullPointerException;
public void println(boolean b);
public void println(char c);
public void println(int i);
public void println(long l);
public void println(float f);
public void println(double d);
}
738
footer
Our partners:
PHP: Hypertext Preprocessor Best Web Hosting
Java Web Hosting
Inexpensive Web Hosting
Jsp Web Hosting
Cheapest Web Hosting
Jsp Hosting
Cheap Hosting
Visionwebhosting.net Business web hosting division of Web
Design Plus. All rights reserved