|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectliquibase.FileSystemFileOpener
public class FileSystemFileOpener
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 | |
|---|---|
FileSystemFileOpener()
Creates using a Base directory of null, all files will be resolved exactly as they are given. |
|
FileSystemFileOpener(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()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public FileSystemFileOpener()
public FileSystemFileOpener(java.lang.String base)
base - The path to use to resolve relative paths| Method Detail |
|---|
public java.io.InputStream getResourceAsStream(java.lang.String file)
throws java.io.IOException
getResourceAsStream in interface FileOpenerjava.io.IOException
public java.util.Enumeration<java.net.URL> getResources(java.lang.String packageName)
throws java.io.IOException
getResources in interface FileOpenerjava.io.IOExceptionpublic java.lang.ClassLoader toClassLoader()
toClassLoader in interface FileOpener
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||