Name
java.io.PrintStream
Synopsis
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); }
Get Wireless Java now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.