public interface XMLParser
Modifier and Type | Field and Description |
---|---|
static String |
DEFAULT_XML_HEADER
The default xml header.
|
Modifier and Type | Method and Description |
---|---|
<T> T |
fromXML(String xml,
Class<T> type)
Deserialize the object from xml.
|
String |
toXML(Object src)
Serialize the object into xml.
|
<T> String |
toXML(Object src,
Class<T> type)
Serialize the object into xml, as the declared type.
|
static final String DEFAULT_XML_HEADER
String toXML(Object src) throws IOException
IOException
<T> String toXML(Object src, Class<T> type) throws IOException
IOException
<T> T fromXML(String xml, Class<T> type) throws IOException
IOException
Copyright © 2009-2018 The Apache Software Foundation. All Rights Reserved.