org.seventytwomiles.springframework.util
Class ResourceUtils
java.lang.Object
org.seventytwomiles.springframework.util.ResourceUtils
public abstract class ResourceUtils
- extends Object
Utility methods for resolving resource locations to files in the file
system. Mainly for internal use within the framework.
issue 2 (remove unnecessary dependencies)
- Author:
- Juergen Hoeller
|
Method Summary |
static File |
getFile(URL resourceUrl,
String description)
Resolve the given resource URL to a java.io.File, i.e. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ResourceUtils
public ResourceUtils()
getFile
public static File getFile(URL resourceUrl,
String description)
throws FileNotFoundException
Resolve the given resource URL to a java.io.File, i.e. to
a file in the file system.
- Parameters:
resourceUrl - the resource URL to resolvedescription - a description of the original resource that the URL
was created for (for example, a class path location)
- Returns:
- a corresponding File object
- Throws:
FileNotFoundException - if the URL cannot be resolved to a file in
the file system
Copyright © 2007-2008. All Rights Reserved.