public class ResourceUrlLoader extends Object implements ResourceLoader
ResourceUrlLoader
provides resource locating and loading capabilities based on
Uniform Resource Locators.ResourceLoader.Type
Constructor and Description |
---|
ResourceUrlLoader(String searchPath)
Creates a new
ResourceUrlLoader . |
Modifier and Type | Method and Description |
---|---|
InputStream |
getResourceStream(String resourceName,
ResourceLoader.Type type)
Returns an
InputStream for the requested resource. |
String |
toString() |
public ResourceUrlLoader(String searchPath)
ResourceUrlLoader
.
A list of URLs to be searched when external resources are required (delimiter is comma) is passed in as a parameter.
searchPath
- the searchPath to be used for this ResourceUrlLoader
public InputStream getResourceStream(String resourceName, ResourceLoader.Type type) throws IOException
ResourceLoader
InputStream
for the requested resource.getResourceStream
in interface ResourceLoader
resourceName
- the name of the resource to be usedtype
- the type of resource to be returnedIOException
- if an I/O error occurred when trying to create the streamCopyright © 2024 levigo holding gmbh. All rights reserved.