|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface XMLParser
Parses XML documents.
Field Summary | |
---|---|
static String |
DEFAULT_XML_HEADER
The default xml header. |
Method Summary | ||
---|---|---|
|
fromXML(String xml,
Class<T> type)
Deserialize the object from xml. |
|
String |
toXML(Object src)
Serialize the object into xml. |
|
|
toXML(Object src,
Class<T> type)
Serialize the object into xml, as the declared type. |
Field Detail |
---|
static final String DEFAULT_XML_HEADER
Method Detail |
---|
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
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |