eu.esdihumboldt.util.resource
Class Resources
java.lang.Object
eu.esdihumboldt.util.resource.Resources
- All Implemented Interfaces:
- ResourcesConstants
public abstract class Resources
- extends Object
- implements ResourcesConstants
Utility methods for the resource extensions.
- Author:
- Simon Templer
Method Summary |
static com.google.common.io.InputSupplier<? extends InputStream> |
tryResolve(URI uri,
String resourceType)
Try resolving an URI for a given resource type. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Resources
public Resources()
tryResolve
public static final com.google.common.io.InputSupplier<? extends InputStream> tryResolve(URI uri,
String resourceType)
- Try resolving an URI for a given resource type.
- Parameters:
uri
- the URI to the resourceresourceType
- the resource type, null
for any resource
type
- Returns:
- an input supplier for the resource or
null
if it was
not found through resource resolvers
Build 2012-12-03_12-30-59
Revision 9d2dd4b0318cda9f1393b1ddd390f7f792d70a2d