public class ClasspathResourceFinderRecursive extends ClasspathResourceFinderBasic
ClasspathResourceFinderBasic
but searches for resources up the parent class hierarchy chain.ClasspathResourceFinder.Null
Constructor and Description |
---|
ClasspathResourceFinderRecursive() |
Modifier and Type | Method and Description |
---|---|
InputStream |
findResource(Class<?> baseClass,
String name,
Locale locale)
Returns the contents of the resource with the specified name.
|
findFileSystemResource
findClasspathResource, getCandidateFileNames
public ClasspathResourceFinderRecursive()
public InputStream findResource(Class<?> baseClass, String name, Locale locale) throws IOException
ClasspathResourceFinder
findResource
in interface ClasspathResourceFinder
findResource
in class ClasspathResourceFinderBasic
baseClass
- The class to use to retrieve the resource.name
- The resource name.
See Class.getResource(String)
for format.locale
- The locale of the resource to retrieve.
IOException
Copyright © 2018 Apache. All rights reserved.