public class XmlSerializer extends Object implements ObjectSerializer
| Constructor and Description |
|---|
XmlSerializer() |
| Modifier and Type | Method and Description |
|---|---|
Object |
deserialize(String string)
Deserializes a XML (default XStream representation) representation of an
object.
|
String |
getContentType()
Returns "text/xml" content-type.
|
String |
serialize(Object object)
Serializes an object to XML using the default XStream converter.
|
public String serialize(Object object)
serialize in interface ObjectSerializerobject - Object to serialize.public Object deserialize(String string)
deserialize in interface ObjectSerializerstring - String representation of the object to deserialize.public String getContentType()
getContentType in interface SerializerCopyright © 2012 ElPaso Software. All Rights Reserved.