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