@aribaapi private
*/
public static String toSerializedString (Map m)
{
StringWriter writer = new StringWriter();
Serializer serializer = new Serializer(writer);
try {
serializer.writeObject(m);
serializer.flush();
}
catch (IOException e) {
Log.util.error(2756, e);
return null;
}
// remember the result
String result = writer.toString();
// close the serializer and the stream
try {
serializer.close();
writer.close();
}
catch (IOException e) {
}