Get a resource as stream using this classloader or one of its parents. First calls
getResource() and if that returns a URL to the resource then it calls and returns the InputStream given by
Subclasses should not override this method but should override
findResource() which is called by this method.
|name ||the name of the resource relative to this classloader |
- an InputStream to the resource, or null
Definition at line 649 of file ClassLoader.java.
URL url = getResource(name);
if (url == null)
catch (IOException e)