public final class JAXB
extends java.lang.Object
| Modifier and Type | Method | Description |
|---|---|---|
static global.namespace.fun.io.api.Codec |
xml(javax.xml.bind.JAXBContext c) |
Uses
Marshallers and Unmarshallers derived from the given JAXBContext to encode and
decode object graphs to and from octet streams. |
static global.namespace.fun.io.api.Codec |
xml(javax.xml.bind.JAXBContext c,
global.namespace.fun.io.api.function.XConsumer<javax.xml.bind.Marshaller> marshallerModifier,
global.namespace.fun.io.api.function.XConsumer<javax.xml.bind.Unmarshaller> unmarshallerModifier) |
Uses
Marshallers and Unmarshallers derived from the given JAXBContext to encode and
decode object graphs to and from octet streams. |
public static global.namespace.fun.io.api.Codec xml(javax.xml.bind.JAXBContext c)
Marshallers and Unmarshallers derived from the given JAXBContext to encode and
decode object graphs to and from octet streams.public static global.namespace.fun.io.api.Codec xml(javax.xml.bind.JAXBContext c,
global.namespace.fun.io.api.function.XConsumer<javax.xml.bind.Marshaller> marshallerModifier,
global.namespace.fun.io.api.function.XConsumer<javax.xml.bind.Unmarshaller> unmarshallerModifier)
Marshallers and Unmarshallers derived from the given JAXBContext to encode and
decode object graphs to and from octet streams.
This variant allows you to modify the marshaller and unmarshallers obtained from the JAXB context using the given
consumer objects.