| Modifier and Type | Field and Description |
|---|---|
private static com.thoughtworks.xstream.io.xml.DomDriver |
DOM_DRIVER |
static XStreamXmlReader |
INSTANCE |
private static com.thoughtworks.xstream.io.xml.XmlFriendlyNameCoder |
NAME_CODER |
private static Map<Class<?>,com.thoughtworks.xstream.XStream> |
X_STREAM_HOLDER |
| Constructor and Description |
|---|
XStreamXmlReader() |
| Modifier and Type | Method and Description |
|---|---|
private static com.thoughtworks.xstream.XStream |
newXStream(Class<?> clazz) |
<T extends XmlEntity> |
read(String xml,
Class<T> clazz)
Read t.
|
<T extends XmlEntity> |
write(T t)
Write string.
|
private static final com.thoughtworks.xstream.io.xml.XmlFriendlyNameCoder NAME_CODER
private static final com.thoughtworks.xstream.io.xml.DomDriver DOM_DRIVER
public static final XStreamXmlReader INSTANCE
public <T extends XmlEntity> T read(String xml, Class<T> clazz)
XmlReaderpublic <T extends XmlEntity> String write(T t)
XmlReaderprivate static com.thoughtworks.xstream.XStream newXStream(Class<?> clazz)
Copyright © 2024. All rights reserved.