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, setValidXMLclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddObjectpublic SimpleXMLBuilder getNested() throws java.lang.UnsupportedOperationException
SimpleXMLBuilderSimpleXMLBuilder.appendParent() method.
The calling code need only hold a reference to the current builder as the
SimpleXMLBuilder.appendParent() method returns the parent.java.lang.UnsupportedOperationExceptionpublic SimpleXMLBuilder appendParent() throws java.lang.UnsupportedOperationException
SimpleXMLBuilderjava.lang.UnsupportedOperationExceptionpublic SimpleXMLBuilder getParent()
SimpleXMLBuilderprotected void append(java.lang.CharSequence s)
AbstractXMLBuilderappend in class AbstractXMLBuilderprotected void append(char s)
AbstractXMLBuilderappend in class AbstractXMLBuilderpublic void setWriter(java.io.Writer w)
throws java.io.IOException
Writer an redirect output
to a new Writerw - java.io.IOException