public class FileSystemResourceAccessor extends Object implements ResourceAccessor
| Constructor and Description |
|---|
FileSystemResourceAccessor()
Creates using a Base directory of null, all files will be
resolved exactly as they are given.
|
FileSystemResourceAccessor(String base)
Creates using a supplied base directory.
|
| Modifier and Type | Method and Description |
|---|---|
InputStream |
getResourceAsStream(String file)
Opens a stream on a file, resolving to the baseDirectory if the
file is relative.
|
Enumeration<URL> |
getResources(String packageName) |
ClassLoader |
toClassLoader() |
String |
toString() |
public FileSystemResourceAccessor()
public FileSystemResourceAccessor(String base)
base - The path to use to resolve relative pathspublic InputStream getResourceAsStream(String file) throws IOException
getResourceAsStream in interface ResourceAccessorIOExceptionpublic Enumeration<URL> getResources(String packageName) throws IOException
getResources in interface ResourceAccessorIOExceptionpublic ClassLoader toClassLoader()
toClassLoader in interface ResourceAccessorCopyright © 2014 Liquibase.org. All rights reserved.