January 2002
Intermediate to advanced
264 pages
8h 3m
English
java.io.PrintStream
This class is slightly modified from the J2SE class of the same name.
The PrintStream class outputs textual
representations of various data. Note that the
PrintStream never throws an
IOException, unlike other streams. Instead, you
should use the checkError() method to determine if
an exceptional condition has occurred.
public classPrintStream{ // constructor publicPrintStream(OutputStream out); // protected instance methods protected voidsetError(); // public instance methods public booleancheckError(); public voidclose(); public voidflush(); public voidprintln(); public voidprintln(boolean x); public voidprintln(char x); public voidprintln(char[] x); public voidprintln(int x); public voidprintln(long x); public voidprintln(Object x); public voidprintln(String x); public voidwrite(int b); public voidwrite(byte[] buf, int off, int len); }
Read now
Unlock full access