public class SpringLiquibase.SpringResourceOpener extends ClassLoaderResourceAccessor
Constructor and Description |
---|
SpringLiquibase.SpringResourceOpener(String parentFile) |
Modifier and Type | Method and Description |
---|---|
org.springframework.core.io.Resource |
getResource(String file) |
Set<InputStream> |
getResourcesAsStream(String path)
Return an InputStream for each resource mapped by the given path.
|
protected void |
init() |
boolean |
isPrefixPresent(String file) |
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() |
toString
addRootPath, convertToPath, convertToPath, getContents, getRootPaths, isCaseSensitive
public SpringLiquibase.SpringResourceOpener(String parentFile)
protected void init()
init
in class AbstractResourceAccessor
public Set<String> list(String relativeTo, String path, boolean includeFiles, boolean includeDirectories, boolean recursive) throws IOException
ResourceAccessor
list
in interface ResourceAccessor
list
in class ClassLoaderResourceAccessor
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 falseIOException
- if there is an error reading an existing root.public Set<InputStream> getResourcesAsStream(String path) throws IOException
ResourceAccessor
getResourcesAsStream
in interface ResourceAccessor
getResourcesAsStream
in class ClassLoaderResourceAccessor
IOException
- if there is an error reading an existing path.public org.springframework.core.io.Resource getResource(String file)
public boolean isPrefixPresent(String file)
public ClassLoader toClassLoader()
toClassLoader
in interface ResourceAccessor
toClassLoader
in class ClassLoaderResourceAccessor
Copyright © 2018 Liquibase.org. All rights reserved.