public class EZXMLWriter
extends java.lang.Object
| Constructor and Description |
|---|
EZXMLWriter(java.io.File outputFile) |
EZXMLWriter(VfsFile outputFile) |
EZXMLWriter(java.io.Writer writer) |
EZXMLWriter(java.io.Writer writer,
boolean printDoctype) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
void |
closeTag() |
void |
closeTag(boolean newLine) |
void |
closeTag(java.lang.String checkTagName) |
void |
closeTag(java.lang.String checkTagName,
boolean newLine) |
void |
endAndCloseComplexTag() |
void |
endComplexTag() |
void |
openTag(java.lang.String tagName) |
void |
openTag(java.lang.String tagName,
boolean newLine) |
void |
startComplexTag(java.lang.String tagName) |
void |
writeContent(java.lang.Object content) |
void |
writeContent(java.lang.Object content,
boolean newLine) |
void |
writeIterableContent(java.lang.String tagName,
java.lang.Object content) |
void |
writeProperty(java.lang.String name,
java.lang.String value) |
void |
writeRaw(java.lang.String text)
This writes text directly to the file, without escaping XML characters.
|
void |
writeTagAndContent(java.lang.String tag,
double content) |
void |
writeTagAndContent(java.lang.String tag,
int content) |
void |
writeTagAndContent(java.lang.String tag,
java.lang.Object content) |
public EZXMLWriter(VfsFile outputFile) throws java.io.IOException
java.io.IOExceptionpublic EZXMLWriter(java.io.File outputFile)
throws java.io.IOException
java.io.IOExceptionpublic EZXMLWriter(java.io.Writer writer)
throws java.io.IOException
java.io.IOExceptionpublic EZXMLWriter(java.io.Writer writer,
boolean printDoctype)
throws java.io.IOException
java.io.IOExceptionpublic void openTag(java.lang.String tagName)
throws java.io.IOException
java.io.IOExceptionpublic void openTag(java.lang.String tagName,
boolean newLine)
throws java.io.IOException
java.io.IOExceptionpublic void closeTag()
throws java.io.IOException
java.io.IOExceptionpublic void closeTag(boolean newLine)
throws java.io.IOException
java.io.IOExceptionpublic void closeTag(java.lang.String checkTagName)
throws java.io.IOException
java.io.IOExceptionpublic void closeTag(java.lang.String checkTagName,
boolean newLine)
throws java.io.IOException
java.io.IOExceptionpublic void startComplexTag(java.lang.String tagName)
throws java.io.IOException
java.io.IOExceptionpublic void writeProperty(java.lang.String name,
java.lang.String value)
throws java.io.IOException
java.io.IOExceptionpublic void endComplexTag()
throws java.io.IOException
java.io.IOExceptionpublic void endAndCloseComplexTag()
throws java.io.IOException
java.io.IOExceptionpublic void writeTagAndContent(java.lang.String tag,
java.lang.Object content)
throws java.io.IOException
java.io.IOExceptionpublic void writeTagAndContent(java.lang.String tag,
double content)
throws java.io.IOException
java.io.IOExceptionpublic void writeTagAndContent(java.lang.String tag,
int content)
throws java.io.IOException
java.io.IOExceptionpublic void writeContent(java.lang.Object content)
throws java.io.IOException
java.io.IOExceptionpublic void writeContent(java.lang.Object content,
boolean newLine)
throws java.io.IOException
java.io.IOExceptionpublic void writeIterableContent(java.lang.String tagName,
java.lang.Object content)
throws java.io.IOException
java.io.IOExceptionpublic void close()
throws java.io.IOException
java.io.IOExceptionpublic void writeRaw(java.lang.String text)
throws java.io.IOException
java.io.IOException