public interface IXmlConverter
| Modifier and Type | Method and Description |
|---|---|
ByteArrayOutputStream |
objectToXml(Object obj)
Uses JAXB to parse an object to an output stream.
|
void |
registerTypes(Class... types)
Adds the given classes to the JAXB context so that they can be parsed to
from retrieved XML responses and files.
|
<T> T |
xmlToObject(InputStream xml,
Class<T> toType)
Uses JAXB to parse the supplied XML stream to an instance of the
specified type.
|
void registerTypes(Class... types)
types - the classes to add to the JAXB context<T> T xmlToObject(InputStream xml, Class<T> toType)
T - the type to parse toxml - the XML streamtoType - the type to parse toByteArrayOutputStream objectToXml(Object obj)
obj - object to parse to output streamCopyright © 2017. All rights reserved.