Interface ClassPathResource


  • public interface ClassPathResource
    A resource on the Class Path that has been loaded from a ClassPathElement
    • 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:
        true if the entry is a directory