Class FeatureParserWithCaching.ResourceAdapter

java.lang.Object
io.cucumber.junit.platform.engine.FeatureParserWithCaching.ResourceAdapter
All Implemented Interfaces:
Resource
Enclosing class:
FeatureParserWithCaching

private static class FeatureParserWithCaching.ResourceAdapter extends Object implements Resource
  • Field Details

    • resource

      private final org.junit.platform.commons.io.Resource resource
  • Constructor Details

    • ResourceAdapter

      ResourceAdapter(org.junit.platform.commons.io.Resource resource)
  • Method Details

    • getUri

      public URI getUri()
      Description copied from interface: Resource
      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.

      Specified by:
      getUri in interface Resource
      Returns:
      a uri representing this resource
    • getInputStream

      public InputStream getInputStream() throws IOException
      Specified by:
      getInputStream in interface Resource
      Throws:
      IOException