|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectliquibase.resource.AbstractResourceAccessor
liquibase.resource.FileSystemResourceAccessor
public class FileSystemResourceAccessor
A @{link ResourceAccessor} implementation which finds Files in the File System.
| Constructor Summary | |
|---|---|
FileSystemResourceAccessor()
Creates with no base directory. |
|
FileSystemResourceAccessor(String base)
Creates with base directory for relative path support. |
|
| Method Summary | |
|---|---|
Set<InputStream> |
getResourcesAsStream(String path)
Return an InputStream for each resource mapped by the given path. |
Set<String> |
list(String relativeTo,
String path,
boolean includeFiles,
boolean includeDirectories,
boolean recursive)
Returns the path to all resources contained in the given root. |
ClassLoader |
toClassLoader()
|
String |
toString()
|
| Methods inherited from class liquibase.resource.AbstractResourceAccessor |
|---|
addRootPath, convertToPath, convertToPath, getContents, getRootPaths, init, isCaseSensitive |
| 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)
| Method Detail |
|---|
public Set<InputStream> getResourcesAsStream(String path)
throws IOException
ResourceAccessor
IOException
public Set<String> list(String relativeTo,
String path,
boolean includeFiles,
boolean includeDirectories,
boolean recursive)
throws IOException
ResourceAccessor
includeFiles - Set to false to exclude files in the returned set. Defaults to trueincludeDirectories - Set to false to exclude directories in the returned set. Defaults to truerecursive - Set to true and will return paths to contents in sub directories as well. Defaults to false
IOExceptionpublic ClassLoader toClassLoader()
public String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||