Interface Resource


  • public interface Resource
    A loadable resource.
    • Method Detail

      • getLocation

        String getLocation()
        Return the location of the resource on the classpath (path and filename).
      • loadAsString

        String loadAsString​(String encoding)
        Return the content of this resource as a string.
        Parameters:
        encoding - The encoding to use.
        Returns:
        The string contents of the resource.
      • loadAsBytes

        byte[] loadAsBytes()
        Return the context of this resource as a byte array.
      • getFilename

        String getFilename()
        Return the filename of this resource, without the path.