Sample 0 [from 67 instances]

Class260.getResourceStreamWithClassLoader(ClassLoader classLoader,String path){
    if (classLoader != null)
    {
      URL url = classLoader.getResource(path);
      if (url != null)
      {
        return new UrlResourceStream(url);
      }
    }
}


Sample 1 [from 18 instances]

Class320.toFile(String name){
        ClassLoader cl = Thread.currentThread().getContextClassLoader();
        return new File(cl.getResource(name).toURI());
}


Sample 2 [from 9 instances]

Class710.findCurrentResourceVersion(String resourceUrl){
        ClassLoader cl = getClass().getClassLoader();
        return cl.getResource(resourceUrl);
}


Sample 3 [from 9 instances]

Class520.getIcon(String iconName){
    ClassLoader cl = Thread.currentThread().getContextClassLoader();
    URL url = cl.getResource("test/check/icons/" + iconName + ".gif");
    if (url != null)
      return new ImageIcon(url);
    url = cl.getResource("test/check/icons/" + iconName + ".png");
    if (url != null)
      return new ImageIcon(url);
}


Sample 4 [from 5 instances]

Class0.getFunctionResoure(Method method)#1{
        ClassLoader loader = declaringClass.getClassLoader();
        URL scriptUrl = loader.getResourcescriptFile );
}