public class XmlWriter
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected int |
indent |
java.lang.String |
lineBreakSequence |
int |
lineCount |
Constructor and Description |
---|
XmlWriter(java.net.URL url) |
XmlWriter(java.net.URL url,
java.lang.String encoding,
boolean standalone) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
void |
writeAttribute(java.lang.String name,
java.lang.Object value) |
void |
writeElementBegin(java.lang.String name) |
void |
writeElementEnd(java.lang.String name) |
void |
writeEmptyElement(java.lang.String name) |
void |
writeNewLine() |
void |
writeText(java.lang.Object... content) |
void |
writeTextElement(java.lang.String name,
java.lang.Object... content) |
protected int indent
public java.lang.String lineBreakSequence
public int lineCount
public XmlWriter(java.net.URL url, java.lang.String encoding, boolean standalone) throws java.io.IOException
java.io.IOException
public XmlWriter(java.net.URL url) throws java.io.IOException
java.io.IOException
public void close() throws java.io.IOException
java.io.IOException
public void writeTextElement(java.lang.String name, java.lang.Object... content) throws java.io.IOException
java.io.IOException
public void writeEmptyElement(java.lang.String name) throws java.io.IOException
java.io.IOException
public void writeElementBegin(java.lang.String name) throws java.io.IOException
java.io.IOException
public void writeAttribute(java.lang.String name, java.lang.Object value)
public void writeText(java.lang.Object... content) throws java.io.IOException
java.io.IOException
public void writeElementEnd(java.lang.String name) throws java.io.IOException
java.io.IOException
public void writeNewLine() throws java.io.IOException
java.io.IOException