public class ClassPathResourceLoader extends Object implements ResourceLoaderExtended
| Constructor and Description |
|---|
ClassPathResourceLoader() |
ClassPathResourceLoader(String rootRamlPackage)
When the root raml is loaded through the classpath allows specifying
the package where it is loaded from in order to correctly resolve
absolute path includes and libraries
|
| Modifier and Type | Method and Description |
|---|---|
InputStream |
fetchResource(String resourceName)
Returns an input stream for reading the specified resource.
|
InputStream |
fetchResource(String resourceName,
ResourceUriCallback callback)
Returns an input stream for reading the specified resource.
|
public ClassPathResourceLoader()
public ClassPathResourceLoader(String rootRamlPackage)
rootRamlPackage - in the classpath@Nullable public InputStream fetchResource(String resourceName, ResourceUriCallback callback)
ResourceLoaderExtendedfetchResource in interface ResourceLoaderExtendedresourceName - the resource to try to fetchpublic InputStream fetchResource(String resourceName)
ResourceLoaderfetchResource in interface ResourceLoaderresourceName - the resource to try to fetchCopyright © 2018. All rights reserved.