public static String serialize(Serializable o) throws IOException {
  ByteArrayOutputStream baos=new ByteArrayOutputStream();
  serialize(o,baos);
  return Base64Coder.encode(baos.toByteArray());
}

public static String serialize ( Serializable o ) throws IOException { ByteArrayOutputStream baos = new ByteArrayOutputStream ( ) ; serialize ( o , baos ) ; return Base64Coder . encode ( baos . toByteArray ( ) ) ; }
serialize a java object of type serializable
