Package com.bandwidth.iris.sdk.utils
Class XmlUtils
- java.lang.Object
-
- com.bandwidth.iris.sdk.utils.XmlUtils
-
public class XmlUtils extends Object
-
-
Constructor Summary
Constructors Constructor Description XmlUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static <T> TfromXml(String responseBody, Class<T> c)static <T> StringtoXml(T object)
-
-
-
Method Detail
-
fromXml
public static <T> T fromXml(String responseBody, Class<T> c) throws JAXBException, XMLStreamException
- Throws:
JAXBExceptionXMLStreamException
-
toXml
public static <T> String toXml(T object) throws JAXBException
- Throws:
JAXBException
-
-