public final class MarshallerHelper
extends java.lang.Object
Modifier | Constructor and Description |
---|---|
private |
MarshallerHelper() |
Modifier and Type | Method and Description |
---|---|
private static javax.xml.bind.Marshaller |
getMarshaller(java.lang.Class<?> clazz)
creates JAXB context and instantiate marshaller
|
static javax.xml.bind.Unmarshaller |
getUnmarshaller(java.lang.Class<?> clazz)
creates JAXB context and instantiate unmarshaller
|
static void |
marshall(java.lang.Object obj) |
static java.io.OutputStream |
marshall(java.lang.Object obj,
java.io.OutputStream output) |
static java.io.Writer |
marshall(java.lang.Object obj,
java.io.Writer writer) |
public static void marshall(java.lang.Object obj)
private static javax.xml.bind.Marshaller getMarshaller(java.lang.Class<?> clazz) throws javax.xml.bind.JAXBException
javax.xml.bind.JAXBException
public static javax.xml.bind.Unmarshaller getUnmarshaller(java.lang.Class<?> clazz) throws javax.xml.bind.JAXBException
javax.xml.bind.JAXBException
public static java.io.OutputStream marshall(java.lang.Object obj, java.io.OutputStream output)
public static java.io.Writer marshall(java.lang.Object obj, java.io.Writer writer)