Javadoc
Get the
InputStream to the resource given by the supplied path. If a class loader is supplied, the
method attempts to resolve the resource using the
ClassLoader#getResourceAsStream(String) method; if the result is
non-null, it is returned. Otherwise, if a class is supplied, this method attempts to resolve the resource using the
Class#getResourceAsStream(String) method; if the result is non-null, it is returned. Otherwise, this method then
uses the Class' ClassLoader to load the resource; if non-null, it is returned . Otherwise, this method looks for an
existing and readable
File at the path; if found, a buffered stream to that file is returned. Otherwise, this
method attempts to parse the resource path into a valid
URL; if this succeeds, the method attempts to open a stream
to that URL. If all of these fail, this method returns null.