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
IOExceptionpublic XmlWriter newLine() throws IOException
IOExceptionpublic XmlWriter element(String name) throws IOException
IOExceptionpublic XmlWriter attribute(String name, Object value) throws IOException
IOExceptionpublic XmlWriter end() throws IOException
IOExceptionpublic XmlWriter end(boolean indent) throws IOException
IOExceptionpublic XmlWriter text(Object value) throws IOException
IOExceptionpublic XmlWriter textElement(String name, Object value) throws IOException
IOExceptionCopyright © 2018. All rights reserved.