|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.googlecode.flyway.core.util.ClassPathResource
public class ClassPathResource
A resource on the classpath.
| Constructor Summary | |
|---|---|
ClassPathResource(java.lang.String location)
Creates a new ClassPathResource. |
|
| Method Summary | |
|---|---|
int |
compareTo(ClassPathResource o)
|
boolean |
equals(java.lang.Object o)
|
boolean |
exists()
Checks whether this resource exists. |
java.lang.String |
getFilename()
|
java.lang.String |
getLocation()
|
java.lang.String |
getLocationOnDisk()
Retrieves the location of this resource on disk. |
int |
hashCode()
|
java.lang.String |
loadAsString(java.lang.String encoding)
Loads this resource as a string. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ClassPathResource(java.lang.String location)
location - The location of the resource on the classpath.| Method Detail |
|---|
public java.lang.String getLocation()
public java.lang.String getLocationOnDisk()
public java.lang.String loadAsString(java.lang.String encoding)
encoding - The encoding to use.
public java.lang.String getFilename()
public boolean exists()
true if it exists, false if not.public boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic int compareTo(ClassPathResource o)
compareTo in interface java.lang.Comparable<ClassPathResource>
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||