question: static String toString ( Serializable o ) throws IOException { ByteArrayOutputStream baos = new ByteArrayOutputStream ( ) ; ObjectOutputStream oos = new ObjectOutputStream ( baos ) ; oos . writeObject ( o ) ; oos . close ( ) ; return new String ( BASE64EncoderStream . encode ( baos . toByteArray ( ) ) ) ; }
target:  Write the object to a Base64 string. 