|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.googlecode.flyway.core.util.ResourceUtils
public class ResourceUtils
Utility class for dealing with classpath resources.
| Method Summary | |
|---|---|
static java.lang.String |
getResourceLocation(org.springframework.core.io.Resource resource)
retrieves the location of a resource |
static java.lang.String |
loadResourceAsString(org.springframework.core.io.Resource resource,
java.lang.String encoding)
Loads this resource in a string using this encoding. |
static java.lang.String |
loadResourceAsString(java.lang.String location)
Loads the resource at this location within the classpath in a string using UTF-8 encoding. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static java.lang.String loadResourceAsString(java.lang.String location)
location - The location of the resource on the classpath.
public static java.lang.String loadResourceAsString(org.springframework.core.io.Resource resource,
java.lang.String encoding)
resource - The resource to load.encoding - The encoding of the resource.
public static java.lang.String getResourceLocation(org.springframework.core.io.Resource resource)
resource - The resource to evaluate
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||