public class SerializationUtil extends Object
| Constructor and Description |
|---|
SerializationUtil() |
| Modifier and Type | Method and Description |
|---|---|
static <C> C |
processThroughJson(Object reference,
Class<? extends C> instanceClass,
com.fasterxml.jackson.databind.ObjectMapper mapper,
SerializationProcessListener... listeners) |
static <C> C |
processThroughJson(Object reference,
Class<? extends C> instanceClass,
SerializationProcessListener... listeners) |
static <C> C |
processThroughJson(Object reference,
SerializationProcessListener... listeners) |
static <C> C |
processThroughXml(Object reference,
Class<? extends C> instanceClass,
JAXBContext context,
SerializationProcessListener... listeners) |
static <C> C |
processThroughXml(Object reference,
Class<? extends C> instanceClass,
SerializationProcessListener... listeners) |
static <C> C |
processThroughXml(Object reference,
SerializationProcessListener... listeners) |
static com.fasterxml.jackson.databind.node.ObjectNode |
toJsonNode(Object reference) |
static com.fasterxml.jackson.databind.node.ObjectNode |
toJsonNode(Object reference,
Class<?> instanceClass) |
static com.fasterxml.jackson.databind.node.ObjectNode |
toJsonNode(Object reference,
Class<?> instanceClass,
com.fasterxml.jackson.databind.ObjectMapper mapper) |
protected static <C> byte[] |
toJsonStream(Object reference,
Class<? extends C> instanceClass,
com.fasterxml.jackson.databind.ObjectMapper mapper,
SerializationProcessListener... listeners) |
static <C> byte[] |
toJsonStream(Object reference,
Class<? extends C> instanceClass,
SerializationProcessListener... listeners) |
static <C> byte[] |
toJsonStream(Object reference,
SerializationProcessListener... listeners) |
static Document |
toXmlDom(Object reference) |
static Document |
toXmlDom(Object reference,
Class<?> instanceClass) |
static Document |
toXmlDom(Object reference,
Class<?> instanceClass,
JAXBContext context) |
static <C> byte[] |
toXmlStream(Object reference,
Class<? extends C> instanceClass,
JAXBContext context,
SerializationProcessListener... listeners) |
static <C> byte[] |
toXmlStream(Object reference,
Class<? extends C> instanceClass,
SerializationProcessListener... listeners) |
static byte[] |
toXmlStream(Object reference,
SerializationProcessListener... listeners) |
static <C> void |
writeJson(Object reference,
Class<? extends C> instanceClass,
com.fasterxml.jackson.databind.ObjectMapper mapper,
OutputStream out) |
static <C> void |
writeJson(Object reference,
Class<? extends C> instanceClass,
OutputStream out) |
static <C> void |
writeJson(Object reference,
OutputStream out) |
static <C> void |
writeXml(Object reference,
Class<? extends C> instanceClass,
JAXBContext context,
OutputStream out) |
static <C> void |
writeXml(Object reference,
Class<? extends C> instanceClass,
OutputStream out) |
static void |
writeXml(Object reference,
OutputStream out) |
public static <C> C processThroughXml(Object reference, SerializationProcessListener... listeners) throws JAXBException, UnsupportedEncodingException
public static <C> C processThroughXml(Object reference, Class<? extends C> instanceClass, SerializationProcessListener... listeners) throws JAXBException, UnsupportedEncodingException
public static <C> C processThroughXml(Object reference, Class<? extends C> instanceClass, JAXBContext context, SerializationProcessListener... listeners) throws JAXBException, UnsupportedEncodingException
public static byte[] toXmlStream(Object reference, SerializationProcessListener... listeners) throws JAXBException, UnsupportedEncodingException
public static void writeXml(Object reference, OutputStream out) throws JAXBException, UnsupportedEncodingException
public static <C> byte[] toXmlStream(Object reference, Class<? extends C> instanceClass, SerializationProcessListener... listeners) throws JAXBException, UnsupportedEncodingException
public static <C> void writeXml(Object reference, Class<? extends C> instanceClass, OutputStream out) throws JAXBException, UnsupportedEncodingException
public static <C> byte[] toXmlStream(Object reference, Class<? extends C> instanceClass, JAXBContext context, SerializationProcessListener... listeners) throws JAXBException, UnsupportedEncodingException
public static <C> void writeXml(Object reference, Class<? extends C> instanceClass, JAXBContext context, OutputStream out) throws JAXBException, UnsupportedEncodingException
public static Document toXmlDom(Object reference) throws JAXBException, UnsupportedEncodingException
public static Document toXmlDom(Object reference, Class<?> instanceClass) throws JAXBException, UnsupportedEncodingException
public static Document toXmlDom(Object reference, Class<?> instanceClass, JAXBContext context) throws JAXBException, UnsupportedEncodingException
public static <C> C processThroughJson(Object reference, SerializationProcessListener... listeners) throws IOException
IOExceptionpublic static <C> C processThroughJson(Object reference, Class<? extends C> instanceClass, SerializationProcessListener... listeners) throws IOException
IOExceptionpublic static <C> C processThroughJson(Object reference, Class<? extends C> instanceClass, com.fasterxml.jackson.databind.ObjectMapper mapper, SerializationProcessListener... listeners) throws IOException
IOExceptionpublic static <C> byte[] toJsonStream(Object reference, SerializationProcessListener... listeners) throws IOException
IOExceptionpublic static <C> void writeJson(Object reference, OutputStream out) throws IOException
IOExceptionpublic static <C> byte[] toJsonStream(Object reference, Class<? extends C> instanceClass, SerializationProcessListener... listeners) throws IOException
IOExceptionpublic static <C> void writeJson(Object reference, Class<? extends C> instanceClass, OutputStream out) throws IOException
IOExceptionprotected static <C> byte[] toJsonStream(Object reference, Class<? extends C> instanceClass, com.fasterxml.jackson.databind.ObjectMapper mapper, SerializationProcessListener... listeners) throws IOException
IOExceptionpublic static <C> void writeJson(Object reference, Class<? extends C> instanceClass, com.fasterxml.jackson.databind.ObjectMapper mapper, OutputStream out) throws IOException
IOExceptionpublic static com.fasterxml.jackson.databind.node.ObjectNode toJsonNode(Object reference) throws IOException
IOExceptionpublic static com.fasterxml.jackson.databind.node.ObjectNode toJsonNode(Object reference, Class<?> instanceClass) throws IOException
IOExceptionpublic static com.fasterxml.jackson.databind.node.ObjectNode toJsonNode(Object reference, Class<?> instanceClass, com.fasterxml.jackson.databind.ObjectMapper mapper) throws IOException
IOExceptionCopyright © 2018. All rights reserved.