Package org.apache.xmlgraphics.io
Class URIResolverAdapter
java.lang.Object
org.apache.xmlgraphics.io.URIResolverAdapter
- All Implemented Interfaces:
ResourceResolver
An adapter between
URIResolver
to ResourceResolver
. This adapter allows users
to utilize the resolvers from the XML library for resource acquisition.-
Constructor Summary
Constructors -
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.
-
Constructor Details
-
URIResolverAdapter
- Parameters:
resolver
- the desiredURIResolver
-
-
Method Details
-
getResource
Get a resource given the URI pointing to said resource.- Specified by:
getResource
in interfaceResourceResolver
- 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.- Specified by:
getOutputStream
in interfaceResourceResolver
- Parameters:
uri
- the output stream URI- Returns:
- the output stream
- Throws:
IOException
- if an I/O error occured while creating an output stream
-