Package org.apache.xmlgraphics.io
Interface ResourceResolver
- All Known Implementing Classes:
URIResolverAdapter
public interface ResourceResolver
Implementations of this resource resolver allow XGC users to control the URI resolution
mechanism. All resource and output stream acquisition goes through this when its implementation
is given to the org.apache.fop.apps.EnvironmentProfile.
-
Method Summary
Modifier and TypeMethodDescriptiongetOutputStream
(URI uri) Gets an output stream of a given URI.getResource
(URI uri) Get a resource given the URI pointing to said resource.
-
Method Details
-
getResource
Get a resource given the URI pointing to said resource.- Parameters:
uri
- the resource URI- Returns:
- the resource
- Throws:
IOException
- if an I/O error occured during resource acquisition
-
getOutputStream
Gets an output stream of a given URI.- Parameters:
uri
- the output stream URI- Returns:
- the output stream
- Throws:
IOException
- if an I/O error occured while creating an output stream
-