Package io.cucumber.core.resource
Interface Resource
-
public interface Resource
Minimal representation of a resource e.g. a feature file.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description InputStream
getInputStream()
URI
getUri()
Returns a uri representing this resource.
-
-
-
Method Detail
-
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 formfile:/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
-
-