public class XmlWriter extends IndentedWriter
Modifier and Type | Class and Description |
---|---|
class |
XmlWriter.ElementWriter |
Constructor and Description |
---|
XmlWriter(OutputStream output)
Creates a new XmlWriter object.
|
XmlWriter(Writer writer)
Creates a new XmlWriter object.
|
Modifier and Type | Method and Description |
---|---|
XmlWriter.ElementWriter |
element(String tag)
Creates a new ElementWriter with the given tag.
|
protected void |
writeAttribute(String name,
String value)
Writes an attribute definition.
|
void |
writeDeclaration()
Writes the standard XML document declaration
|
void |
writeDeclaration(String encoding)
Writes the standard XML document declaration
|
protected void |
writeElementEnd(String tag)
Writes an element end tag.
|
protected void |
writeEmptyElementEnd()
Writes the end of an empty element.
|
protected void |
writeTagEnd()
Completes an element start tag.
|
protected void |
writeTagStart(String tag)
Begins an element start tag.
|
public XmlWriter(OutputStream output)
public XmlWriter(Writer writer)
public void writeDeclaration(String encoding)
public void writeDeclaration()
protected void writeTagStart(String tag)
protected void writeTagEnd()
protected void writeElementEnd(String tag)
protected void writeEmptyElementEnd()
protected void writeAttribute(String name, String value)
public XmlWriter.ElementWriter element(String tag)
Copyright © 2024 The Cornutum Project. All rights reserved.