Package migratedb.v1.core.api.resource
Interface Resource
-
- All Known Implementing Classes:
ClassPathResource,FileSystemResource,ReaderResource,StringResource
public interface ResourceA textual resource (such as a .sql file) used by MigrateDB.
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description StringdescribeLocation()default StringgetLastNameComponent()StringgetName()static StringlastNameComponentOf(String name)Readerread(Charset charset)
-
-
-
Method Detail
-
getName
String getName()
- Returns:
- The path of this resource, separated by forward slashes (
"/"on all platforms. Never ends with a slash.
-
getLastNameComponent
default String getLastNameComponent()
- Returns:
- Just the last component of the name of this resource, the "file name".
-
describeLocation
String describeLocation()
- Returns:
- A hint that describes the physical location of this resource (like a full path to a file on disk)
-
-