get Resource Stream
return a stream of the given resource or throws an exception.
Parameters
resource Path
the path to the resource. Can either be a valid URL (including file URL), or a resource path.
See also
Throws
if an IO error occurs.
if the URL is invalid and/or the resource is not found