Java Resource Find findResource(String name)

Here you can find the source of findResource(String name)

Description

XXX Abstraction around how we find resources, do something smarter in the future.

License

Apache License

Declaration

public static URL findResource(String name) 

Method Source Code


//package com.java2s;
//License from project: Apache License 

import java.net.URL;

public class Main {
    /** XXX Abstraction around how we find resources, do something smarter
    in the future. *///  w  ww . j av  a 2  s.c  o  m
    public static URL findResource(String name) {
        return ClassLoader.getSystemResource(name);
    }
}

Related

  1. findResource(Class clazz)
  2. findResource(Class clazz)
  3. findResource(String resource, ClassLoader classLoader)
  4. findResourceBase(String baseResource, ClassLoader loader)
  5. findResourceBases(String baseResource, ClassLoader loader)
  6. findResources(String name)