Package io.cucumber.core.resource
Interface Resource
-
public interface ResourceMinimal representation of a resource e.g. a feature file.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description InputStreamgetInputStream()URIgetUri()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.featurewhile 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
-
-