Class EntityJsonURIDownloader

  • All Implemented Interfaces:
    com.github.fge.jsonschema.core.load.download.URIDownloader

    public class EntityJsonURIDownloader
    extends Object
    implements com.github.fge.jsonschema.core.load.download.URIDownloader
    URIDownloader which restricts schema downloads to known hosts.
    Author:
    Bruce Skingle
    • Method Detail

      • getInstance

        public static com.github.fge.jsonschema.core.load.download.URIDownloader getInstance()
        Singleton getter. This is merely a performance optimisation, this class does not rely on there being only a single instance.
        Returns:
        The single instance.
      • fetch

        public InputStream fetch​(URI source)
                          throws IOException
        Specified by:
        fetch in interface com.github.fge.jsonschema.core.load.download.URIDownloader
        Throws:
        IOException