Interface IoResource<T>
- Type Parameters:
T- Type of resource
- All Superinterfaces:
NamedResource, ResourceStreamProvider
- All Known Implementing Classes:
AbstractIoResource, ClassLoaderResource, PathResource, URIResource, URLResource
-
Field Summary
Fields inherited from interface NamedResource
BY_NAME_COMPARATOR, NAME_EXTRACTOR -
Method Summary
Modifier and TypeMethodDescriptionstatic IoResource<?> forResource(Object resource) Attempts to find the best wrapper for the resourceMethods inherited from interface NamedResource
getNameMethods inherited from interface ResourceStreamProvider
openInputStream
-
Method Details
-
getResourceType
-
getResourceValue
T getResourceValue()- Returns:
- The resource value serving as basis for the provided data stream
-
forResource
Attempts to find the best wrapper for the resource- Parameters:
resource- The resource object - ignored ifnull- Returns:
- The best wrapper out of the supported ones (
nullif no initial resource) - Throws:
UnsupportedOperationException- if no match found
-