|
||||||||||
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(java.lang.String base)
Creates using a supplied base directory. |
Method Summary | |
---|---|
java.io.InputStream |
getResourceAsStream(java.lang.String file)
Opens a stream on a file, resolving to the baseDirectory if the file is relative. |
java.util.Enumeration<java.net.URL> |
getResources(java.lang.String packageName)
|
java.lang.ClassLoader |
toClassLoader()
|
java.lang.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(java.lang.String base)
base
- The path to use to resolve relative pathsMethod Detail |
---|
public java.io.InputStream getResourceAsStream(java.lang.String file) throws java.io.IOException
getResourceAsStream
in interface ResourceAccessor
java.io.IOException
public java.util.Enumeration<java.net.URL> getResources(java.lang.String packageName) throws java.io.IOException
getResources
in interface ResourceAccessor
java.io.IOException
public java.lang.ClassLoader toClassLoader()
toClassLoader
in interface ResourceAccessor
public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |