Mybatis component can accept an InputStream for configuration

In my current project we're using YAML for configuration, and have a utility that converts YAML to XML for Mybatis... I'd like the option of providing an inputstream for configuration instead of only an XML file reference.

My changes add the option of setting an inputstream for configuring the component. In my particular use case, I have a set of JAXB annotated classes return their XML equivalent value as an inputstream into this component.