public class MailingsXmlSerializer
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
XML_MAILINGS |
Constructor and Description |
---|
MailingsXmlSerializer() |
Modifier and Type | Method and Description |
---|---|
static java.util.List<Mailing> |
deserialize(Element elements)
Deserialize a list of mailings
|
long |
getSize(java.util.List<Mailing> t,
java.lang.Class<?> type,
java.lang.reflect.Type genericType,
java.lang.annotation.Annotation[] annotations,
MediaType mediaType) |
boolean |
isReadable(java.lang.Class<?> type,
java.lang.reflect.Type type1,
java.lang.annotation.Annotation[] antns,
MediaType mt) |
boolean |
isWriteable(java.lang.Class<?> type,
java.lang.reflect.Type type1,
java.lang.annotation.Annotation[] antns,
MediaType mt) |
java.util.List<Mailing> |
readFrom(java.lang.Class<java.util.List<Mailing>> type,
java.lang.reflect.Type type1,
java.lang.annotation.Annotation[] antns,
MediaType mt,
<any> mm,
java.io.InputStream in) |
static Element |
serialize(java.util.List<Mailing> mailings)
Serialize a list of mailings
|
void |
writeTo(java.util.List<Mailing> t,
java.lang.Class<?> type,
java.lang.reflect.Type type1,
java.lang.annotation.Annotation[] antns,
MediaType mt,
<any> mm,
java.io.OutputStream out) |
public static final java.lang.String XML_MAILINGS
public boolean isReadable(java.lang.Class<?> type, java.lang.reflect.Type type1, java.lang.annotation.Annotation[] antns, MediaType mt)
public java.util.List<Mailing> readFrom(java.lang.Class<java.util.List<Mailing>> type, java.lang.reflect.Type type1, java.lang.annotation.Annotation[] antns, MediaType mt, <any> mm, java.io.InputStream in) throws java.io.IOException, WebApplicationException
java.io.IOException
WebApplicationException
public boolean isWriteable(java.lang.Class<?> type, java.lang.reflect.Type type1, java.lang.annotation.Annotation[] antns, MediaType mt)
public void writeTo(java.util.List<Mailing> t, java.lang.Class<?> type, java.lang.reflect.Type type1, java.lang.annotation.Annotation[] antns, MediaType mt, <any> mm, java.io.OutputStream out) throws java.io.IOException, WebApplicationException
java.io.IOException
WebApplicationException
public static java.util.List<Mailing> deserialize(Element elements) throws java.lang.Exception
elements
- java.lang.Exception
public static Element serialize(java.util.List<Mailing> mailings) throws java.lang.Exception
mailings
- java.lang.Exception
public long getSize(java.util.List<Mailing> t, java.lang.Class<?> type, java.lang.reflect.Type genericType, java.lang.annotation.Annotation[] annotations, MediaType mediaType)
Copyright © 2018. All Rights Reserved.