public interface XmlRpcCustomSerializer
A number of serializers for common types are already implemented, but you may wish to add custom serializers for special types of Java objects.
Modifier and Type | Method and Description |
---|---|
java.lang.Class |
getSupportedClass()
Returns the class of objects this serializer knows how to handle.
|
void |
serialize(java.lang.Object value,
java.lang.StringBuffer output)
Asks the custom serializer to serialize the supplied value into
the supplied string buffer.
|
java.lang.Class getSupportedClass()
void serialize(java.lang.Object value, java.lang.StringBuffer output) throws XmlRpcException
value
- The object to serialize.output
- The buffer to place the serialized data.XmlRpcException
- if the value somehow could not be serialized. Many serializers
rely on the built in serializer which also may throw this
exception.