public final class ClasspathResource extends AbstractResource
Resource
for files on the classpath (as defined by a ClassLoader
).Constructor and Description |
---|
ClasspathResource(ClassLoader classLoader,
String path) |
ClasspathResource(String path) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
int |
hashCode() |
protected Resource |
newResource(String path)
Factory method provided by subclasses.
|
String |
toString() |
URL |
toURL()
Returns the URL for the resource, or null if it does not exist.
|
exists, forFile, forLocale, getFile, getFolder, getPath, isVirtual, openStream, validateURL, withExtension
acquireReadLock, downgradeWriteLockToReadLock, releaseReadLock, releaseWriteLock, takeWriteLock, upgradeReadLockToWriteLock
public ClasspathResource(String path)
public ClasspathResource(ClassLoader classLoader, String path)
protected Resource newResource(String path)
AbstractResource
newResource
in class AbstractResource
public URL toURL()
Resource
${project.version} - Copyright © 2003-2015 The Apache Software Foundation.