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