Package org.flywaydb.core.api.resource
Class LoadableResource
- java.lang.Object
-
- org.flywaydb.core.api.resource.LoadableResource
-
- All Implemented Interfaces:
java.lang.Comparable<LoadableResource>
,Resource
public abstract class LoadableResource extends java.lang.Object implements Resource, java.lang.Comparable<LoadableResource>
A loadable resource.
-
-
Constructor Summary
Constructors Constructor Description LoadableResource()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description int
compareTo(LoadableResource o)
abstract java.io.Reader
read()
Reads the contents of this resource.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.flywaydb.core.api.resource.Resource
getAbsolutePath, getAbsolutePathOnDisk, getFilename, getRelativePath
-
-
-
-
Method Detail
-
read
public abstract java.io.Reader read()
Reads the contents of this resource.- Returns:
- The reader with the contents of the resource.
-
compareTo
public int compareTo(LoadableResource o)
- Specified by:
compareTo
in interfacejava.lang.Comparable<LoadableResource>
-
-