public interface Dto
| Modifier and Type | Method and Description |
|---|---|
static SortedMap<String,Object> |
fromJson(InputStream in) |
static <T> T |
fromJson(InputStream in,
Class<T> resultClass) |
static <T> T |
fromJson(String in,
Class<T> resultClass) |
static <T> T |
fromXml(InputStream inputStream,
Class<T> clazz) |
static com.fasterxml.jackson.jaxrs.json.JacksonJaxbJsonProvider |
getJsonProvider(boolean format) |
default String |
stylize(InputStream xsltStream) |
static OutputStream |
stylize(InputStream xmlIn,
InputStream xslt,
OutputStream out) |
default String |
stylize(String xslt) |
static String |
stylize(String xmlIn,
String xslt) |
default String |
toJson() |
default String |
toJson(boolean format) |
static String |
toJson(Object o) |
static String |
toJson(Object o,
boolean format) |
static void |
toJson(Object o,
OutputStream out) |
static void |
toJson(Object o,
OutputStream out,
boolean format) |
default String |
toXml() |
default String |
toXml(boolean format)
output this as XML
|
static String |
toXml(Dto o) |
static String |
toXml(Dto o,
Boolean format) |
static String |
toXml(Object o,
Boolean format) |
static String |
toXml(Object o,
Boolean format,
String rootElementName) |
static void |
toXml(Object o,
OutputStream os) |
static void |
toXml(Object o,
OutputStream os,
Boolean format) |
static void |
toXmlSafe(Object toLog,
StringBuilder logBuilder) |
default String toXml() throws JAXBException
JAXBExceptiondefault String toXml(boolean format) throws JAXBException
format - do you want it pretty formatted?JAXBExceptiondefault String toJson()
default String toJson(boolean format)
default String stylize(String xslt) throws TransformerException, JAXBException
TransformerExceptionJAXBExceptiondefault String stylize(InputStream xsltStream) throws TransformerException, JAXBException, IOException
static OutputStream stylize(InputStream xmlIn, InputStream xslt, OutputStream out)
static com.fasterxml.jackson.jaxrs.json.JacksonJaxbJsonProvider getJsonProvider(boolean format)
static String toXml(Dto o, Boolean format) throws JAXBException
o - the @XmlRootElement object to outputformat - format the output?JAXBException - if there was a problem with the marshallingstatic String toXml(Object o, Boolean format) throws JAXBException
JAXBExceptionstatic String toXml(Dto o) throws JAXBException
o - the @XmlRootElement object to outputJAXBException - if there was a problem with the marshallingstatic void toXml(Object o, OutputStream os) throws JAXBException
JAXBExceptionstatic void toXml(Object o, OutputStream os, Boolean format) throws JAXBException
JAXBExceptionstatic String toXml(Object o, Boolean format, String rootElementName) throws JAXBException
JAXBExceptionstatic void toXmlSafe(Object toLog, StringBuilder logBuilder)
static void toJson(Object o, OutputStream out) throws IOException
IOExceptionstatic void toJson(Object o, OutputStream out, boolean format) throws IOException
IOExceptionstatic String toJson(Object o) throws IOException
IOExceptionstatic <T> T fromJson(String in, Class<T> resultClass) throws IOException
IOExceptionstatic <T> T fromJson(InputStream in, Class<T> resultClass) throws IOException
IOExceptionstatic SortedMap<String,Object> fromJson(InputStream in) throws IOException
IOExceptionstatic <T> T fromXml(InputStream inputStream, Class<T> clazz) throws JAXBException
JAXBExceptionCopyright © 2015. All rights reserved.