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 ObjectSerializer
object
- Object to serialize.public Object deserialize(String string)
deserialize
in interface ObjectSerializer
string
- String representation of the object to deserialize.public String getContentType()
getContentType
in interface Serializer
Copyright © 2012 ElPaso Software. All Rights Reserved.