Code example for StringWriter

Methods: append

0
	public String getType () {
		return _type;
	} 
	 
	public void toString (StringWriter str, int indent) {
		indent(str, indent);
		str.append("(");
		str.append(_type);
		str.append(" -");
		this.childrenToString(str, indent+2);
		indent(str, indent);
		str.append(")\n");
	} 
	 
	public void toXml (XmlWriter xml) throws IOException {
		xml.writeEntity(_type);
		this.childrenToXml(xml);
		xml.endEntity();
	} 
 
}