public class XmlJaxbSerialization extends Object implements Serialization<Element>
| Constructor and Description |
|---|
XmlJaxbSerialization(Container container,
Optional<PluginLoader> extensibility) |
XmlJaxbSerialization(JaxbConfiguration[] plugins) |
| Modifier and Type | Method and Description |
|---|---|
Object |
deserialize(Type type,
Element data) |
Object |
deserialize(Type type,
InputStream stream) |
<T,W> void |
register(Class<? extends T> type,
Class<W> wrapper,
Function<T,W> packer,
Function<W,T> unpacker) |
<T> void |
register(Class<T> type) |
<T> void |
register(Class<T> container,
Type type) |
<T,W> void |
registerArray(Class<? extends T> content,
Class<W> wrapper,
Function<T[],W> packer,
Function<W,T[]> unpacker) |
<T,W> void |
registerList(Class<? extends T> content,
Class<W> wrapper,
Function<List<T>,W> packer,
Function<W,List<T>> unpacker) |
Element |
serialize(Type manifest,
Object value) |
void |
serializeTo(Object value,
OutputStream stream) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitdeserialize, deserialize, serializepublic XmlJaxbSerialization(Container container, Optional<PluginLoader> extensibility) throws IOException
IOExceptionpublic XmlJaxbSerialization(JaxbConfiguration[] plugins)
public <T> void register(Class<T> type)
public <T,W> void register(Class<? extends T> type, Class<W> wrapper, Function<T,W> packer, Function<W,T> unpacker)
public <T,W> void registerArray(Class<? extends T> content, Class<W> wrapper, Function<T[],W> packer, Function<W,T[]> unpacker)
public <T,W> void registerList(Class<? extends T> content, Class<W> wrapper, Function<List<T>,W> packer, Function<W,List<T>> unpacker)
public void serializeTo(Object value, OutputStream stream) throws IOException
IOExceptionpublic Element serialize(Type manifest, Object value) throws IOException
serialize in interface Serialization<Element>IOExceptionpublic Object deserialize(Type type, InputStream stream) throws IOException
IOExceptionpublic Object deserialize(Type type, Element data) throws IOException
deserialize in interface Serialization<Element>IOExceptionCopyright © 2016. All rights reserved.