public class URIResolverAdapter extends Object implements ResourceResolver
URIResolver
to ResourceResolver
. This adapter allows users
to utilize the resolvers from the XML library for resource acquisition.Constructor and Description |
---|
URIResolverAdapter(URIResolver resolver) |
Modifier and Type | Method and Description |
---|---|
OutputStream |
getOutputStream(URI uri)
Gets an output stream of a given URI.
|
Resource |
getResource(URI uri)
Get a resource given the URI pointing to said resource.
|
public URIResolverAdapter(URIResolver resolver)
resolver
- the desired URIResolver
public Resource getResource(URI uri) throws IOException
getResource
in interface ResourceResolver
uri
- the resource URIIOException
- if an I/O error occured during resource acquisitionpublic OutputStream getOutputStream(URI uri) throws IOException
getOutputStream
in interface ResourceResolver
uri
- the output stream URIIOException
- if an I/O error occured while creating an output streamCopyright 1999-2015 The Apache Software Foundation. All Rights Reserved.