public final class SimpleXml extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
SimpleXml.Builder |
| Constructor and Description |
|---|
SimpleXml() |
| Modifier and Type | Method and Description |
|---|---|
String |
domToXml(Element node) |
void |
domToXml(Element node,
Writer out) |
Element |
fromXml(InputStream stream) |
<T> T |
fromXml(InputStream in,
Class<T> clazz) |
Element |
fromXml(String input) |
<T> T |
fromXml(String input,
Class<T> clazz) |
Interfaces.CheckedIterator<Element> |
iterateDom(InputStream in) |
Interfaces.CheckedIterator<String> |
iterateXml(InputStream in) |
static SimpleXml.Builder |
newSimpleXml() |
String |
toXml(Object o) |
String |
toXml(Object o,
String name) |
void |
toXml(Object o,
String name,
Writer out) |
void |
toXml(Object o,
Writer out) |
public <T> T fromXml(String input, Class<T> clazz) throws IOException
IOExceptionpublic <T> T fromXml(InputStream in, Class<T> clazz) throws IOException
IOExceptionpublic Element fromXml(String input) throws IOException
IOExceptionpublic Element fromXml(InputStream stream) throws IOException
IOExceptionpublic void toXml(Object o, Writer out) throws IOException
IOExceptionpublic void toXml(Object o, String name, Writer out) throws IOException
IOExceptionpublic void domToXml(Element node, Writer out) throws IOException
IOExceptionpublic Interfaces.CheckedIterator<String> iterateXml(InputStream in)
public Interfaces.CheckedIterator<Element> iterateDom(InputStream in)
public static SimpleXml.Builder newSimpleXml()
Copyright © 2018. All rights reserved.