public class OpenApiReader extends Object implements Closeable
OpenAPI
object from an Open API Version 3 document.Constructor and Description |
---|
OpenApiReader()
Creates a new OpenApiReader instance.
|
OpenApiReader(File input)
Creates a new OpenApiReader instance.
|
OpenApiReader(File input,
String defaultDocType)
Creates a new OpenApiReader instance.
|
OpenApiReader(InputStream input)
Creates a new OpenApiReader instance.
|
OpenApiReader(InputStream input,
String docType)
Creates a new OpenApiReader instance.
|
OpenApiReader(InputStream input,
URL location)
Creates a new OpenApiReader instance.
|
OpenApiReader(InputStream input,
URL location,
String defaultDocType)
Creates a new OpenApiReader instance.
|
OpenApiReader(Reader input)
Creates a new OpenApiReader instance.
|
OpenApiReader(Reader input,
String docType)
Creates a new OpenApiReader instance.
|
OpenApiReader(Reader input,
URL location)
Creates a new OpenApiReader instance.
|
OpenApiReader(Reader input,
URL location,
String defaultDocType)
Creates a new OpenApiReader instance.
|
Modifier and Type | Method and Description |
---|---|
void |
close() |
String |
getDocType()
Returns the content type of this document.
|
URL |
getLocation()
Returns the location of this document.
|
io.swagger.v3.oas.models.OpenAPI |
read()
Returns the
OpenAPI instance represented by this document. |
public OpenApiReader()
public OpenApiReader(InputStream input)
public OpenApiReader(InputStream input, String docType)
public OpenApiReader(InputStream input, URL location)
public OpenApiReader(InputStream input, URL location, String defaultDocType)
public OpenApiReader(File input)
public OpenApiReader(File input, String defaultDocType)
public OpenApiReader(Reader input)
public OpenApiReader(Reader input, String docType)
public OpenApiReader(Reader input, URL location)
public URL getLocation()
public String getDocType()
public io.swagger.v3.oas.models.OpenAPI read()
OpenAPI
instance represented by this document.public void close()
close
in interface Closeable
close
in interface AutoCloseable
Copyright © 2024 The Cornutum Project. All rights reserved.