public class SpringResourceOpener extends Object implements liquibase.FileOpener
| Constructor and Description |
|---|
SpringResourceOpener(org.springframework.core.io.ResourceLoader resourceLoader,
String parentFile) |
| Modifier and Type | Method and Description |
|---|---|
org.springframework.core.io.Resource |
getResource(String file) |
InputStream |
getResourceAsStream(String file) |
Enumeration<URL> |
getResources(String packageName) |
boolean |
isClasspathPrefixPresent(String file) |
ClassLoader |
toClassLoader() |
public SpringResourceOpener(org.springframework.core.io.ResourceLoader resourceLoader,
String parentFile)
resourceLoader - the resource loaderparentFile - the parent filepublic org.springframework.core.io.Resource getResource(String file)
file - the file to getpublic InputStream getResourceAsStream(String file) throws IOException
getResourceAsStream in interface liquibase.FileOpenerIOExceptionpublic Enumeration<URL> getResources(String packageName) throws IOException
getResources in interface liquibase.FileOpenerIOExceptionpublic boolean isClasspathPrefixPresent(String file)
file - the file to checkpublic ClassLoader toClassLoader()
toClassLoader in interface liquibase.FileOpenerCopyright © 2019 Communote team. All rights reserved.