|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object liquibase.resource.FileSystemResourceAccessor
public class FileSystemResourceAccessor
A FileOpener implementation which finds Files in the File System.
FileSystemFileOpeners can use a BaseDirectory to determine where relative paths should be resolved from.
Constructor Summary | |
---|---|
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. |
Method Summary | |
---|---|
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()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public FileSystemResourceAccessor()
public FileSystemResourceAccessor(String base)
base
- The path to use to resolve relative pathsMethod Detail |
---|
public InputStream getResourceAsStream(String file) throws IOException
getResourceAsStream
in interface ResourceAccessor
IOException
public Enumeration<URL> getResources(String packageName) throws IOException
getResources
in interface ResourceAccessor
IOException
public ClassLoader toClassLoader()
toClassLoader
in interface ResourceAccessor
public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |