Package com.networknt.schema.resource
Class ClasspathResourceLoader
java.lang.Object
com.networknt.schema.resource.ClasspathResourceLoader
- All Implemented Interfaces:
ResourceLoader
Loads from classpath.
-
Constructor Summary
ConstructorsConstructorDescriptionConstructor.ClasspathResourceLoader(Supplier<ClassLoader> classLoaderSource) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionprotected static ClassLoaderstatic ClasspathResourceLoadergetResource(AbsoluteIri absoluteIri) Loads data given the retrieval IRI.
-
Constructor Details
-
ClasspathResourceLoader
public ClasspathResourceLoader()Constructor. -
ClasspathResourceLoader
Constructor.- Parameters:
classLoaderSource- the class loader source
-
-
Method Details
-
getInstance
-
getResource
Description copied from interface:ResourceLoaderLoads data given the retrieval IRI.- Specified by:
getResourcein interfaceResourceLoader- Parameters:
absoluteIri- the retrieval IRI- Returns:
- the input stream source
-
getClassLoader
-