public class XmlWriter extends Object
Constructor | Description |
---|---|
XmlWriter(Writer w) |
|
XmlWriter(Writer w,
boolean indent) |
Modifier and Type | Method | Description |
---|---|---|
XmlWriter |
attribute(String name,
Object value) |
|
XmlWriter |
element(String name) |
|
XmlWriter |
end() |
|
XmlWriter |
end(boolean indent) |
|
XmlWriter |
indent(int nb) |
|
XmlWriter |
newLine() |
|
XmlWriter |
text(Object value) |
|
XmlWriter |
textElement(String name,
Object value) |
public XmlWriter(Writer w)
public XmlWriter(Writer w, boolean indent)
public XmlWriter indent(int nb) throws IOException
IOException
public XmlWriter newLine() throws IOException
IOException
public XmlWriter element(String name) throws IOException
IOException
public XmlWriter attribute(String name, Object value) throws IOException
IOException
public XmlWriter end() throws IOException
IOException
public XmlWriter end(boolean indent) throws IOException
IOException
public XmlWriter text(Object value) throws IOException
IOException
public XmlWriter textElement(String name, Object value) throws IOException
IOException
Copyright © 2018. All rights reserved.