Interface Resource


public interface Resource
Minimal representation of a resource e.g. a feature file.
  • Method Summary

    Modifier and Type
    Method
    Description
     
    Returns a uri representing this resource.
  • Method Details

    • getUri

      URI getUri()
      Returns a uri representing this resource.

      Resources on the classpath will have the form classpath:com/example.feature while resources on the file system will have the form file:/path/to/example.feature. Other resources will be represented by their exact uri.

      Returns:
      a uri representing this resource
    • getInputStream

      InputStream getInputStream() throws IOException
      Throws:
      IOException