public class XMLConverter extends Object
| Constructor and Description |
|---|
XMLConverter() |
| Modifier and Type | Method and Description |
|---|---|
static String |
convertToXML(Object obj) |
static String |
convertToXML(Object obj,
boolean prettyPrint) |
static <T> T |
fromXML(String xml,
Class<T> clazz) |
public static String convertToXML(Object obj) throws JAXBException
JAXBExceptionpublic static String convertToXML(Object obj, boolean prettyPrint) throws JAXBException
JAXBExceptionpublic static <T> T fromXML(String xml, Class<T> clazz) throws JAXBException
JAXBExceptionCopyright © 2014. All Rights Reserved.