Hi,
I want to use anti-samy from OWASP. They got a Policy object, that is instantiated via a factory method.
public static Policy getInstance(InputStream inputStream);
The InputStream that needs to be passed to the factory-method represents the config file for the policy-object.
Is it possible to use create a policy bean in an spring xml context config? I know, that there is a Resource object, that can load files from classpath. But what I need is to make a InputStream out of that Resource object. Can I doe this directly in the xml-spring-context? Or do I need to write java code in order to get the InputStream?