public class ClasspathResourceProvider extends Object implements ResourceProvider
| Modifier and Type | Method and Description |
|---|---|
InputStream |
getBinaryResource(String name)
Loads a binary resource
|
PropertyFile |
getPropertyResource(String name)
Loads a resource containing a property file
|
Reader |
getTextResource(String name)
Loads a text resource.
|
public InputStream getBinaryResource(String name) throws ResourceNotFoundException
ResourceProvidergetBinaryResource in interface ResourceProvidername - the resource name, expressed as a path (see the comments on ResourceProvider)ResourceNotFoundExceptionpublic Reader getTextResource(String name) throws ResourceNotFoundException
ResourceProvidergetTextResource in interface ResourceProvidername - the resource name, expressed as a path using / as a separator characterResourceNotFoundExceptionpublic PropertyFile getPropertyResource(String name) throws ResourceNotFoundException
ResourceProvidergetPropertyResource in interface ResourceProvidername - the resource name, expressed as a path with / characters to separateResourceNotFoundExceptionCopyright © 2016. All rights reserved.