public class XMLWriter extends AbstractXMLBuilder
Constructor and Description |
---|
XMLWriter(java.io.Writer w) |
Modifier and Type | Method and Description |
---|---|
protected void |
append(char s)
append un-cleaned content.
|
protected void |
append(java.lang.CharSequence s)
append un-cleaned content.
|
SimpleXMLBuilder |
appendParent()
Append the contents of this builder to the parent (if any).
|
SimpleXMLBuilder |
getNested()
Get a new SimpleXMLBuilder of the same type as this object.
|
SimpleXMLBuilder |
getParent()
Get the parent object.
|
void |
setWriter(java.io.Writer w)
Close the existing
Writer an redirect output
to a new Writer |
addClass, append, attr, attr, badAttribute, br, clean, clean, clean, cleanFormatted, clear, close, closeElement, doClean, doClean, endOpen, getAttribute, getEscapeUnicode, getTags, getValidXML, isInOpen, longLines, matched, nbs, open, open, openElement, setEscapeUnicode, setValidXML
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addObject
public SimpleXMLBuilder getNested() throws java.lang.UnsupportedOperationException
SimpleXMLBuilder
SimpleXMLBuilder.appendParent()
method.
The calling code need only hold a reference to the current builder as the
SimpleXMLBuilder.appendParent()
method returns the parent.java.lang.UnsupportedOperationException
public SimpleXMLBuilder appendParent() throws java.lang.UnsupportedOperationException
SimpleXMLBuilder
java.lang.UnsupportedOperationException
public SimpleXMLBuilder getParent()
SimpleXMLBuilder
protected void append(java.lang.CharSequence s)
AbstractXMLBuilder
append
in class AbstractXMLBuilder
protected void append(char s)
AbstractXMLBuilder
append
in class AbstractXMLBuilder
public void setWriter(java.io.Writer w) throws java.io.IOException
Writer
an redirect output
to a new Writer
w
- java.io.IOException