37 |
|
|
38 |
package java.io; |
package java.io; |
39 |
|
|
|
/** |
|
|
* This class prints Java primitive values and objects to a stream as |
|
|
* text. None of the methods in this class throw an exception. However, |
|
|
* errors can be detected by calling the <code>checkError()</code> method. |
|
|
* Additionally, this stream can be designated as "autoflush" when |
|
|
* created so that any writes are automatically flushed to the underlying |
|
|
* output sink whenever one of the <code>println</code> methods is |
|
|
* called. (Note that this differs from the <code>PrintStream</code> |
|
|
* class which also auto-flushes when it encounters a newline character |
|
|
* in the chars written). |
|
|
* |
|
|
* @author Per Bothner <bothner@cygnus.com> |
|
|
* @author Aaron M. Renn (arenn@urbanophile.com) |
|
|
* @date April 17, 1998. |
|
|
*/ |
|
40 |
/* Written using "Java Class Libraries", 2nd edition, plus online |
/* Written using "Java Class Libraries", 2nd edition, plus online |
41 |
* API docs for JDK 1.2 beta from http://www.javasoft.com. |
* API docs for JDK 1.2 beta from http://www.javasoft.com. |
42 |
* Status: Believed complete and correct. |
* Status: Believed complete and correct. |
43 |
* However, should use native methods for conversion. |
* However, should use native methods for conversion. |
44 |
*/ |
*/ |
45 |
|
|
46 |
|
/** |
47 |
|
* This class prints Java primitive values and objects to a stream as |
48 |
|
* text. None of the methods in this class throw an exception. However, |
49 |
|
* errors can be detected by calling the <code>checkError()</code> method. |
50 |
|
* Additionally, this stream can be designated as "autoflush" when |
51 |
|
* created so that any writes are automatically flushed to the underlying |
52 |
|
* output sink whenever one of the <code>println</code> methods is |
53 |
|
* called. (Note that this differs from the <code>PrintStream</code> |
54 |
|
* class which also auto-flushes when it encounters a newline character |
55 |
|
* in the chars written). |
56 |
|
* |
57 |
|
* @author Per Bothner <bothner@cygnus.com> |
58 |
|
* @author Aaron M. Renn <arenn@urbanophile.com> |
59 |
|
* @date April 17, 1998. |
60 |
|
*/ |
61 |
public class PrintWriter extends Writer |
public class PrintWriter extends Writer |
62 |
{ |
{ |
63 |
/** |
/** |