liquibase.resource
Interface ResourceAccessor

All Known Implementing Classes:
AntResourceAccessor, ClassLoaderResourceAccessor, CommandLineResourceAccessor, CompositeResourceAccessor, FileSystemResourceAccessor, SpringLiquibase.SpringResourceOpener

public interface ResourceAccessor

Abstracts file access so they can be read in a variety of manners.


Method Summary
 InputStream getResourceAsStream(String file)
          Return the given file path as an InputStream.
 Enumeration<URL> getResources(String packageName)
           
 ClassLoader toClassLoader()
           
 

Method Detail

getResourceAsStream

InputStream getResourceAsStream(String file)
                                throws IOException
Return the given file path as an InputStream. Return null if the resource does not exist. Throws IOException if there is an error reading an existing file.

Throws:
IOException

getResources

Enumeration<URL> getResources(String packageName)
                              throws IOException
Throws:
IOException

toClassLoader

ClassLoader toClassLoader()


Copyright © 2014 Liquibase.org. All Rights Reserved.