liquibase.ant
Class AntFileOpener

java.lang.Object
  extended by liquibase.ant.AntFileOpener
All Implemented Interfaces:
FileOpener

public class AntFileOpener
extends java.lang.Object
implements FileOpener

An implementation of FileOpener that is specific to how Ant works.


Constructor Summary
AntFileOpener(org.apache.tools.ant.Project project, org.apache.tools.ant.types.Path classpath)
           
 
Method Summary
 java.io.InputStream getResourceAsStream(java.lang.String file)
           
 java.util.Enumeration<java.net.URL> getResources(java.lang.String packageName)
           
 java.lang.ClassLoader toClassLoader()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AntFileOpener

public AntFileOpener(org.apache.tools.ant.Project project,
                     org.apache.tools.ant.types.Path classpath)
Method Detail

getResourceAsStream

public java.io.InputStream getResourceAsStream(java.lang.String file)
                                        throws java.io.IOException
Specified by:
getResourceAsStream in interface FileOpener
Throws:
java.io.IOException

getResources

public java.util.Enumeration<java.net.URL> getResources(java.lang.String packageName)
                                                 throws java.io.IOException
Specified by:
getResources in interface FileOpener
Throws:
java.io.IOException

toClassLoader

public java.lang.ClassLoader toClassLoader()
Specified by:
toClassLoader in interface FileOpener