public class Base64Serializer extends Object implements ObjectSerializer
Constructor and Description |
---|
Base64Serializer() |
Modifier and Type | Method and Description |
---|---|
Object |
deserialize(String data)
Deserialze base 64 encoded string data to Object.
|
String |
getContentTransferEncoding()
Returns 'base64' as content-transfer-encoding.
|
String |
getContentType()
Content type that will be used in the response.
|
String |
serialize(Object object)
Serialize object to an encoded base64 string.
|
public String serialize(Object object)
serialize
in interface ObjectSerializer
object
- Object to serialize.public Object deserialize(String data)
deserialize
in interface ObjectSerializer
data
- String representation of the object to deserialize.public String getContentType()
Serializer
getContentType
in interface Serializer
Serializer.getContentType()
public String getContentTransferEncoding()
Copyright © 2012 ElPaso Software. All Rights Reserved.