public class IOSXmlSerializer extends java.lang.Object implements XmlSerializer
XmlSerializer| Constructor and Description | 
|---|
| IOSXmlSerializer() | 
| Modifier and Type | Method and Description | 
|---|---|
| <T> T | fromXml(java.io.Reader xmlReader,
       java.lang.Class<T> clazz)Reads an XML document from a  Readerand converts it into an object of the specified type | 
| <T> T | fromXml(java.lang.String xml,
       java.lang.Class<T> clazz)Reads a XML document and converts it into an object of the specified type | 
| <T> java.lang.String | toXml(T object)Writes a XML document by searching the object for  Fieldannotations | 
| <T> void | toXml(T object,
     java.io.Writer writer)Writes a XML document to a  Writerby searching the object forFieldannotations | 
public <T> T fromXml(java.lang.String xml,
                     java.lang.Class<T> clazz)
              throws SerializationException
XmlSerializerfromXml in interface XmlSerializerxml - The XML documentclazz - The Class to convert the document toSerializationException - Thrown when the data is invalidpublic <T> T fromXml(java.io.Reader xmlReader,
                     java.lang.Class<T> clazz)
              throws SerializationException
XmlSerializerReader and converts it into an object of the specified typefromXml in interface XmlSerializerxmlReader - The input stream reading the XML documentclazz - The Class to convert the document toSerializationException - Thrown when the data is invalidpublic <T> java.lang.String toXml(T object)
                           throws SerializationException
XmlSerializerField annotationstoXml in interface XmlSerializerobject - The object to convert to XMLSerializationException - Thrown when the object is invalidpublic <T> void toXml(T object,
                      java.io.Writer writer)
               throws SerializationException
XmlSerializerWriter by searching the object for Field annotationstoXml in interface XmlSerializerobject - The object to convert to XMLwriter - The stream to write the XML document toSerializationException - Thrown when the object is invalid