java.lang.Object
net.thucydides.core.requirements.model.cucumber.URIResource
All Implemented Interfaces:
io.cucumber.core.resource.Resource

public class URIResource
extends java.lang.Object
implements io.cucumber.core.resource.Resource
  • Constructor Summary

    Constructors
    Constructor Description
    URIResource​(java.nio.file.Path resource)  
  • Method Summary

    Modifier and Type Method Description
    java.io.InputStream getInputStream()  
    java.net.URI getUri()  

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • URIResource

      public URIResource​(java.nio.file.Path resource)
  • Method Details

    • getUri

      public java.net.URI getUri()
      Specified by:
      getUri in interface io.cucumber.core.resource.Resource
    • getInputStream

      public java.io.InputStream getInputStream() throws java.io.IOException
      Specified by:
      getInputStream in interface io.cucumber.core.resource.Resource
      Throws:
      java.io.IOException