Interface ClassPathResource
-
public interface ClassPathResourceA resource on the Class Path that has been loaded from aClassPathElement
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ClassPathElementgetContainingElement()byte[]getData()Loads the data contained in this resource and returns it as a byte arrayStringgetPath()URLgetUrl()booleanisDirectory()
-
-
-
Method Detail
-
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
-
-