Class DefaultDocumentLoader

  • All Implemented Interfaces:
    DocumentLoader

    public class DefaultDocumentLoader
    extends java.lang.Object
    implements DocumentLoader
    Loads known default schemas and hyper-schemas from prepackaged resources instead of from http://json-schema.org/
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.io.InputStream openURL​(java.net.URL url)  
      • Methods inherited from class java.lang.Object

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

      • DefaultDocumentLoader

        public DefaultDocumentLoader()
    • Method Detail

      • openURL

        public java.io.InputStream openURL​(java.net.URL url)
                                    throws java.io.IOException
        Specified by:
        openURL in interface DocumentLoader
        Parameters:
        url - the url to open
        Returns:
        an input stream or null, if not found
        Throws:
        java.io.IOException - for errors other than 'not found'