extract configuration data provider for streams and files

That's my proposition of loading files/streams etc. 
What do you think about this?