|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectliquibase.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 paths| Method Detail |
|---|
public InputStream getResourceAsStream(String file)
throws IOException
getResourceAsStream in interface ResourceAccessorIOException
public Enumeration<URL> getResources(String packageName)
throws IOException
getResources in interface ResourceAccessorIOExceptionpublic ClassLoader toClassLoader()
toClassLoader in interface ResourceAccessorpublic String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||