Class StreamLoader

java.lang.Object
io.micronaut.jsonschema.generator.loaders.StreamLoader
All Implemented Interfaces:
SchemaLoader

public class StreamLoader extends Object implements SchemaLoader
Loads a JSON schema from an Input Stream. This class implements the SchemaLoader interface and provides the functionality to load a JSON schema from an input stream, typically used when the data comes from a non-file source such as a network stream, in-memory byte data, or testing.
Author:
Elif Kurtay
  • Constructor Details

    • StreamLoader

      public StreamLoader(InputStream inputStream)
  • Method Details

    • load

      public Schema load()
      Description copied from interface: SchemaLoader
      Loads a JSON schema.
      Specified by:
      load in interface SchemaLoader
      Returns:
      a Schema object representing the loaded JSON schema