if (_pwt == null) {
if (_writer != null) {
if (_writer instanceof PrintWriter) {
_pwt = (PrintWriter)_writer;
} else {
_pwt = new PrintWriterX(_writer);
}
} else {
_pwt = new PrintWriterX(new OutputStreamWriter(
_stream, getCharacterEncoding()));
}
}
return _pwt;
}