public interface Resource
| Modifier and Type | Method and Description |
|---|---|
String |
getFilename()
Return the filename of this resource, without the path.
|
String |
getLocation()
Return the location of the resource on the classpath (path and filename).
|
String |
getLocationOnDisk()
Return the location of this resource on disk.
|
byte[] |
loadAsBytes()
Return the context of this resource as a byte array.
|
String |
loadAsString(String encoding)
Return the content of this resource as a string.
|
String getLocation()
String getLocationOnDisk()
String loadAsString(String encoding)
encoding - The encoding to use.byte[] loadAsBytes()
String getFilename()
Copyright © 2019. All rights reserved.