Class UriReader
- java.lang.Object
-
- io.openapiprocessor.jsonschema.reader.UriReader
-
- All Implemented Interfaces:
io.openapiprocessor.interfaces.Reader
public class UriReader extends java.lang.Object implements io.openapiprocessor.interfaces.ReadersimpleReaderimplementation based onURL.
-
-
Constructor Summary
Constructors Constructor Description UriReader()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.io.InputStreamread(java.net.URI uri)reads the document at the given uri.
-
-
-
Method Detail
-
read
public java.io.InputStream read(java.net.URI uri) throws java.io.IOExceptionreads the document at the given uri.- Specified by:
readin interfaceio.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
-
-