Package org.smooks.api.resource
Interface ExternalResourceLocator
-
- All Known Subinterfaces:
ContainerResourceLocator
- All Known Implementing Classes:
URIResourceLocator
public interface ExternalResourceLocator
Interface for locating stream resources external to the container.- Author:
- tfennelly
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description InputStream
getResource(String uri)
Get the stream specified by the 'uri' parameter.
-
-
-
Method Detail
-
getResource
InputStream getResource(String uri) throws IllegalArgumentException, IOException
Get the stream specified by the 'uri' parameter.- Parameters:
uri
- The location of the resource to be located.- Returns:
- The InputStream associated with the org.smooks.resource.
- Throws:
IllegalArgumentException
- Illegal argument. Check the cause exception for more information.IOException
- Unable to get the org.smooks.resource stream.
-
-