Interface ClassPathResource
public interface ClassPathResource
A resource on the Class Path that has been loaded from a
ClassPathElement-
Method Details
-
getContainingElement
ClassPathElement getContainingElement()- Returns:
- The element that contains this resource
-
getPath
String getPath()- Returns:
- The relative path that was used to load this resource from the
ClassPathElement
-
getUrl
URL getUrl()- Returns:
- The URL of the resource
-
getData
byte[] getData()Loads the data contained in this resource and returns it as a byte array- Returns:
- The resource data
-
isDirectory
boolean isDirectory()- Returns:
trueif the entry is a directory
-