public class SimpleXMLWriter
extends java.lang.Object
Constructor and Description |
---|
SimpleXMLWriter() |
Modifier and Type | Method and Description |
---|---|
void |
close()
Flushes and finishes writing.
|
protected java.lang.String |
encodeValue(java.lang.Object val) |
protected void |
endElement() |
void |
initialize(java.lang.String file) |
void |
initialize(java.io.Writer writer) |
protected void |
startElement(java.lang.String name,
boolean oneLine,
boolean noValue,
java.util.List<java.lang.String> attributes) |
protected void |
startElement(java.lang.String name,
boolean oneLine,
boolean noValue,
java.lang.String... attributes) |
protected void |
startElement(java.lang.String name,
java.lang.String... attributes)
Writes a staring element, with optional attributes.
|
protected void |
writeElement(java.lang.String name,
java.util.List<java.lang.String> attributes,
java.lang.String value)
Writes start and ending together on one line.
|
protected void |
writeIndent(boolean isEnding) |
protected void |
writeLine(java.lang.String value) |
public void initialize(java.lang.String file) throws java.io.IOException
java.io.IOException
public void initialize(java.io.Writer writer)
public void close() throws java.io.IOException
java.io.IOException
protected void writeLine(java.lang.String value) throws java.io.IOException
java.io.IOException
protected void writeIndent(boolean isEnding) throws java.io.IOException
java.io.IOException
protected void startElement(java.lang.String name, java.lang.String... attributes) throws java.io.IOException
name
- attributes
- java.io.IOException
protected void startElement(java.lang.String name, boolean oneLine, boolean noValue, java.lang.String... attributes) throws java.io.IOException
java.io.IOException
protected void startElement(java.lang.String name, boolean oneLine, boolean noValue, java.util.List<java.lang.String> attributes) throws java.io.IOException
java.io.IOException
protected void endElement() throws java.io.IOException
java.io.IOException
protected void writeElement(java.lang.String name, java.util.List<java.lang.String> attributes, java.lang.String value) throws java.io.IOException
name
- attributes
- value
- java.io.IOException
protected java.lang.String encodeValue(java.lang.Object val)