public static String serializeToBase64 ( Serializable object ) { Objects . requireNonNull ( object , Required . OBJECT . toString ( ) ) ; byte [ ] serialize = SerializationUtils . serialize ( object ) ; return base64Encoder . encodeToString ( serialize ) ; }
Serializes an object into an Base64 encoded data string