Package org.archenos.locator

Examples of org.archenos.locator.ResourceNotFoundException


    public URL findResource(String resourceName) throws ResourceNotFoundException {
        ClassLoader loader = getClasssLoader();
        URL path = loader.getResource(resourceName);

        if (path == null) {
            throw new ResourceNotFoundException("Resource \"" + resourceName + "\" not found.");
        }

        return path;
    }
View Full Code Here

TOP

Related Classes of org.archenos.locator.ResourceNotFoundException

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.