All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.cucumber.core.resource.Resource Maven / Gradle / Ivy

There is a newer version: 7.18.0
Show newest version
package io.cucumber.core.resource;

import java.io.IOException;
import java.io.InputStream;
import java.net.URI;

/**
 * Minimal representation of a resource e.g. a feature file.
 */
public interface Resource {

    /**
     * Returns a uri representing this resource.
     * 

* Resources on the classpath will have the form * {@code classpath:com/example.feature} while resources on the file system * will have the form {@code file:/path/to/example.feature}. Other resources * will be represented by their exact uri. * * @return a uri representing this resource */ URI getUri(); InputStream getInputStream() throws IOException; }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy