Interface Resource


public interface Resource
A loadable resource.
  • Method Details

    • location

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

      String name()
      Return the name of this resource, without the path.
    • inputStream

      InputStream inputStream()
      Return the content as InputStream.
    • loadAsLines

      List<String> loadAsLines(Charset charset)
      Return the content as lines.
    • loadAsString

      String loadAsString(Charset charset)
      Return the content of this resource as a string.