143 |
|
|
144 |
/*************************************************************************/ |
/*************************************************************************/ |
145 |
|
|
146 |
|
/** |
147 |
|
* This method intializes a new <code>PrintStream</code> object to write |
148 |
|
* to the specified output sink. This constructor also allows "auto-flush" |
149 |
|
* functionality to be specified where the stream will be flushed after |
150 |
|
* every line is terminated or newline character is written. |
151 |
|
* <p> |
152 |
|
* Note that this class is deprecated in favor of <code>PrintWriter</code>. |
153 |
|
* |
154 |
|
* @param out The <code>OutputStream</code> to write to. |
155 |
|
* @param autoFlush <code>true</code> to flush the stream after every |
156 |
|
* line, <code>false</code> otherwise |
157 |
|
* @param encoding The name of the character encoding to use for this |
158 |
|
* object. |
159 |
|
* |
160 |
|
* @deprecated |
161 |
|
*/ |
162 |
|
public PrintStream(OutputStream out, boolean autoFlush, String encoding) |
163 |
|
throws UnsupportedEncodingException |
164 |
|
{ |
165 |
|
super(out); |
166 |
|
|
167 |
|
pw = new PrintWriter(new OutputStreamWriter(out, encoding), autoFlush); |
168 |
|
this.auto_flush = autoFlush; |
169 |
|
} |
170 |
|
|
171 |
|
/*************************************************************************/ |
172 |
|
|
173 |
/* |
/* |
174 |
* Instance Methods |
* Instance Methods |
175 |
*/ |
*/ |