public class FilesystemResourceLoader extends StreamResourceLoader
ResourceLoader that loads resources from the file system.| Constructor and Description |
|---|
FilesystemResourceLoader() |
| Modifier and Type | Method and Description |
|---|---|
protected String |
getSchema()
Returns the schema name associated with the loader.
|
protected InputStream |
openStream(String path)
Note that path should be absolute, otherwise the results are dependent on
the VM's
user.dir. |
exists, load, readStreamprotected String getSchema()
StreamResourceLoadergetSchema in class StreamResourceLoaderprotected InputStream openStream(String path) throws IOException
user.dir.openStream in class StreamResourceLoaderpath - the path of the resource.InputStream or null if the resource does not
exist.IOException - when i/o operation fails.Copyright © 2014 Asual DZZD. All Rights Reserved.