DefaultResourceManager
public interface ResourceManager
Modifier and Type | Method | Description |
---|---|---|
void |
addResource(Resource resource) |
Add the resource.
|
Stream<String> |
getAllLocations() |
|
URL |
getResource(String location) |
Get the resource.
|
InputStream |
getResourceAsStream(String location) |
Get the resource as a stream.
|
Collection<URL> |
getResources(String location) |
Get the resources.
|
void addResource(Resource resource)
resource
- the resource.URL getResource(String location) throws MalformedURLException
location
- the location.MalformedURLException
- when the location is malformed.Collection<URL> getResources(String location) throws MalformedURLException
location
- the locationMalformedURLException
- when the location is malformed.InputStream getResourceAsStream(String location)
location
- the location.Copyright © 2020 Piranha Cloud. All rights reserved.