public class JAXBHelper extends Object
Constructor and Description |
---|
JAXBHelper() |
Modifier and Type | Method and Description |
---|---|
static String |
marshall(Class clz,
Object instance)
Serialize an JAXB-annotated object into a string.
|
static Object |
unmarshall(Class clz,
Reader reader)
Create an instance of a JAXB object of type
clz . |
public static String marshall(Class clz, Object instance) throws Exception
clz
- class (type) of the object being serializedinstance
- object being serializedException
- if there is an exception serializing the objectpublic static Object unmarshall(Class clz, Reader reader) throws Exception
clz
.clz
- class (type) of the JAXB instance being createdreader
- reference to a reader containing the content to be unmarshalled into the JAXB instanceException
- if there is an exception instantiating the objectCopyright © Jitterbit, Inc. Licensed under the Jitterbit Master Subscription Agreement.