public class ClasspathResourceLoader extends StreamResourceLoader
ResourceLoader that loads resources from a ClassLoader.| Constructor and Description |
|---|
ClasspathResourceLoader(ClassLoader classLoader)
Creates a new
ClasspathResourceLoader. |
| Modifier and Type | Method and Description |
|---|---|
protected String |
getSchema()
Returns the schema name associated with the loader.
|
protected InputStream |
openStream(String path)
Please note that path should NOT have a leading slash.
|
exists, load, readStreampublic ClasspathResourceLoader(ClassLoader classLoader)
ClasspathResourceLoader.classLoader - a ClassLoader to load resources from.protected String getSchema()
StreamResourceLoadergetSchema in class StreamResourceLoaderprotected InputStream openStream(String path)
openStream in class StreamResourceLoaderpath - the path of the resource.InputStream or null if the resource does not
exist.Copyright © 2014 Asual DZZD. All Rights Reserved.