Package io.zerocopy.json.schema.loader
Class DefaultDocumentLoader
- java.lang.Object
-
- io.zerocopy.json.schema.loader.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/
-
-
Constructor Summary
Constructors Constructor Description DefaultDocumentLoader()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.io.InputStreamopenURL(java.net.URL url)
-
-
-
Method Detail
-
openURL
public java.io.InputStream openURL(java.net.URL url) throws java.io.IOException- Specified by:
openURLin interfaceDocumentLoader- 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'
-
-