Classes in this File | Line Coverage | Branch Coverage | Complexity | ||||
ResourceAccessor |
|
| 1.0;1 |
1 | package liquibase.resource; | |
2 | ||
3 | import java.io.IOException; | |
4 | import java.io.InputStream; | |
5 | import java.net.URL; | |
6 | import java.util.Enumeration; | |
7 | ||
8 | /** | |
9 | * Abstracts file access so they can be read in a variety of manners. | |
10 | */ | |
11 | public interface ResourceAccessor { | |
12 | public InputStream getResourceAsStream(String file) throws IOException; | |
13 | ||
14 | public Enumeration<URL> getResources(String packageName) throws IOException; | |
15 | ||
16 | public ClassLoader toClassLoader(); | |
17 | } |