|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectliquibase.CompositeFileOpener
public class CompositeFileOpener
A FileOpener that will search in a List of other FileOpeners until it finds one that has a resource of the appropriate name and path.
| Constructor Summary | |
|---|---|
CompositeFileOpener(FileOpener... openers)
Creates a CompositeFileOpener with 2 entries. |
|
CompositeFileOpener(java.util.List<FileOpener> openers)
Creates a Composite Opener with the list specified. |
|
| Method Summary | |
|---|---|
java.io.InputStream |
getResourceAsStream(java.lang.String file)
Searches through all of the FileOpeners in order for the file. |
java.util.Enumeration<java.net.URL> |
getResources(java.lang.String packageName)
Searches all of the FileOpeners for a directory named 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 |
|---|
public CompositeFileOpener(java.util.List<FileOpener> openers)
openers - The list of Openers to usepublic CompositeFileOpener(FileOpener... openers)
openers - The list of Openers to use| Method Detail |
|---|
public java.io.InputStream getResourceAsStream(java.lang.String file)
throws java.io.IOException
getResourceAsStream in interface FileOpenerjava.io.IOException
public java.util.Enumeration<java.net.URL> getResources(java.lang.String packageName)
throws java.io.IOException
getResources in interface FileOpenerjava.io.IOExceptionpublic java.lang.ClassLoader toClassLoader()
toClassLoader in interface FileOpener
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||