*/
public XMLWriterBase(Writer writer, boolean indent) throws NullPointerException {
if (writer == null)
throw new NullPointerException("XMLWriter cannot use a null writer.");
this.writer = writer;
this.writerEscape = new XMLEscapeWriterUTF8(writer);
this.indent = indent;
if (indent) {
this.indentChars = " ";
}
}