Class UriReader

  • All Implemented Interfaces:
    io.openapiprocessor.interfaces.Reader

    public class UriReader
    extends java.lang.Object
    implements io.openapiprocessor.interfaces.Reader
    simple Reader implementation based on URL.
    • Constructor Summary

      Constructors 
      Constructor Description
      UriReader()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.io.InputStream read​(java.net.URI uri)
      reads the document at the given uri.
      • Methods inherited from class java.lang.Object

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

      • UriReader

        public UriReader()
    • Method Detail

      • read

        public java.io.InputStream read​(java.net.URI uri)
                                 throws java.io.IOException
        reads the document at the given uri.
        Specified by:
        read in interface io.openapiprocessor.interfaces.Reader
        Parameters:
        uri - uri of the OpenAPI document.
        Returns:
        input stream of the uri
        Throws:
        java.io.IOException - if it fails to read the uri