logback-android/src/main/java/ch/qos/logback/core/util/Loader.java
public static URL getResource(String resource, ClassLoader classLoader) {
    try {
      return classLoader.getResource(resource);
    } catch (Throwable t) {
      return null;
    }
  }
public static URL getResource(String resource, ClassLoader classLoader) {
    try {
      return classLoader.getResource(resource);
    } catch (Throwable t) {
      return null;
    }
  }
public static URL getResource ( String resource , ClassLoader classLoader ) { try { return classLoader . getResource ( resource ) ; } catch ( Throwable t ) { return null ; } }
Search for a resource using the classloader passed as parameter.

@param resource    the resource name to look for
@param classLoader the classloader used for the search
Search for a resource using the classloader passed as parameter .