public class Marshallers extends Object
| Modifier | Constructor and Description |
|---|---|
protected |
Marshallers()
Creates a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
static <T> void |
marshal(JAXBContext context,
Object value,
Class<? super T> outputType,
T output)
Marshals given
value to output using specified
context. |
static void |
marshal(JAXBContext context,
Object value,
Object output)
Marshals given
value to specified output. |
static <T> void |
marshal(Marshaller marshaller,
Object value,
Class<? super T> outputType,
T output)
Marshals given
value to output using specified
marshaller. |
static void |
marshal(Marshaller marshaller,
Object value,
Object output)
Marshals
value to output. |
static <T> void |
marshal(Object value,
Class<? super T> outputType,
T output)
Marshals
value to output. |
static void |
marshal(Object value,
Object output)
Marshals given
value to specified output. |
public static <T> void marshal(Marshaller marshaller, Object value, Class<? super T> outputType, T output) throws JAXBException
value to output using specified
marshaller.T - output type parametermarshaller - marshallervalue - the value to marshaloutputType - output typeoutput - the output to which value is marshalled.JAXBException - if a JAXB error occurs.public static <T> void marshal(JAXBContext context, Object value, Class<? super T> outputType, T output) throws JAXBException
value to output using specified
context.T - output type parametercontext - contextvalue - value to marshaloutputType - output typeoutput - the output to which value is marshalled.JAXBException - if a JAXB error occurs.public static <T> void marshal(Object value, Class<? super T> outputType, T output) throws JAXBException
value to output.T - output type parametervalue - value to marshaloutputType - output typeoutput - the output to which value is marshalled.JAXBException - if a JAXB error occurs.public static void marshal(Marshaller marshaller, Object value, Object output) throws JAXBException
value to output.marshaller - marshallervalue - the value to marshaloutput - the output to which value is marshalled.JAXBException - if a JAXB error occurs.public static void marshal(JAXBContext context, Object value, Object output) throws JAXBException
value to specified output.context - contextvalue - the value to marshaloutput - the output to which value is marshalled.JAXBException - if a JAXB error occurs.public static void marshal(Object value, Object output) throws JAXBException
value to specified output.value - the value to marshaloutput - the output to which value is marshalled.JAXBException - if a JAXB error occurs.Copyright © 2011-2013. All Rights Reserved.