public class XmlWriter extends CommonXmlWriter
XmlElementCDATA_BEG, CDATA_END, COMMENT_BEG, COMMENT_END, FORWARD_SLASH, CHAR_NEW_LINE, CHAR_SPACE, indentationEnabled, indentationSpace, out, XML_2QUOT, XML_AMPERSAND, XML_APOSTROPHE, XML_GT, XML_LT| Constructor and Description |
|---|
XmlWriter()
Default constructor a zero offset
|
XmlWriter(Appendable out)
Writer constructor with a zero offset
|
XmlWriter(Appendable out,
String indentationSpace)
A writer constructor
|
| Modifier and Type | Method and Description |
|---|---|
protected XmlWriter |
write(int level,
CharSequence name,
Map<String,Object> attributes,
List<Object> children,
XmlElement element)
Render the XML code without header
|
XmlWriter |
write(int level,
XmlElement element)
Render the XML code without header
|
createWriter, toString, write, writeNewLine, writeRawValue, writeValuepublic XmlWriter()
public XmlWriter(@Nonnull Appendable out)
public XmlWriter(@Nonnull Appendable out, @Nullable String indentationSpace)
out - A writerindentationSpace - String for a one level offset.@Nonnull public final XmlWriter write(int level, @Nonnull XmlElement element) throws IOException
IOException@Nonnull protected XmlWriter write(int level, @Nonnull CharSequence name, @Nullable Map<String,Object> attributes, @Nullable List<Object> children, @Nonnull XmlElement element) throws IOException
level - Element nesting level.name - Name of elementattributes - Attributes of the elementchildren - Childern of the element including null itemselement - Original elementIOExceptionCopyright 2015, Pavel Ponec