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.构造器和说明 |
---|
URIResolverAdapter(URIResolver resolver) |
限定符和类型 | 方法和说明 |
---|---|
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
在接口中 ResourceResolver
uri
- the resource URIIOException
- if an I/O error occured during resource acquisitionpublic OutputStream getOutputStream(URI uri) throws IOException
getOutputStream
在接口中 ResourceResolver
uri
- the output stream URIIOException
- if an I/O error occured while creating an output streamCopyright 1999-2016 The Apache Software Foundation. All Rights Reserved.