public class SerializerHelper
extends java.lang.Object
| Constructor and Description |
|---|
SerializerHelper(redstone.xmlrpc.XmlRpcSerializer basicSerializer)
Constructs a SerializerHelper
|
| Modifier and Type | Method and Description |
|---|---|
void |
add(java.lang.String name,
java.lang.Object value)
Adds an xml rpc value to be written
|
void |
clear()
resets the saved xmlrpc data so one can
start over with a new snippet
|
void |
writeTo(java.io.Writer out)
Writes the xml rpc snippet to the out param
|
public SerializerHelper(redstone.xmlrpc.XmlRpcSerializer basicSerializer)
basicSerializer - serializer to convert basic objects to
XMLRPC formatpublic void add(java.lang.String name,
java.lang.Object value)
throws redstone.xmlrpc.XmlRpcException
name - name of the propertyvalue - value of the propertyredstone.xmlrpc.XmlRpcException - in the case of the serialization failurepublic void writeTo(java.io.Writer out)
throws java.io.IOException
out - the writer to whom the output will be writtenjava.io.IOException - problem writing to given Writerpublic void clear()