public final class XmlWriter extends java.lang.Object implements ITagWriter
ITagWriter.Tag| Constructor and Description |
|---|
XmlWriter(java.io.OutputStream os) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
void |
endTag()
Close the last open tag
|
void |
setAutoIndent(boolean indent)
Indent tag (tab)
|
void |
setTagOnNewLine(boolean tagOnNewLine)
Line break on a new tag
|
void |
writeTag(java.lang.Object tag) |
void |
writeTagAttribute(java.lang.Object attribute,
java.lang.String value)
Key/value atttribute
|
void |
writeTagContent(java.lang.String text)
This functionnality is deprecated as Json does not support it.
|
public XmlWriter(java.io.OutputStream os)
throws java.io.IOException
java.io.IOExceptionpublic final void setTagOnNewLine(boolean tagOnNewLine)
public final void setAutoIndent(boolean indent)
public final void writeTag(java.lang.Object tag)
throws java.io.IOException
writeTag in interface ITagWritertag - write tag.toString()java.io.IOExceptionITagWriter.endTag()public final void writeTagAttribute(java.lang.Object attribute,
java.lang.String value)
throws java.io.IOException
ITagWriterwriteTagAttribute in interface ITagWriterattribute - write the attribute key attribute.toString()value - write the attribute valuejava.io.IOExceptionpublic final void writeTagContent(java.lang.String text)
throws java.io.IOException
ITagWriterwriteTagContent in interface ITagWriterjava.io.IOExceptionpublic final void endTag()
throws java.io.IOException
ITagWriterendTag in interface ITagWriterjava.io.IOExceptionITagWriter.writeTag(Object)public final void close()
throws java.io.IOException
close in interface java.io.Closeableclose in interface java.lang.AutoCloseablejava.io.IOExceptionBonzai Engine 1.4.1-20200831 - A Java OpenGL engine and tools for Windows/Mac/Linux/Android
Copyright © 2007-2019 Jérôme Jouvie bonzaiengine.com contact@bonzaiengine.com