public class InternalResourceResolver extends Object
ResourceResolver
and delegates all relevant
URIs to it.Modifier and Type | Method and Description |
---|---|
static URI |
cleanURI(String uriStr)
Performs some sanitation for some of the most common URI syntax mistakes.
|
URI |
getBaseURI()
Returns the base URI from which to resolve all URIs against.
|
static URI |
getBaseURI(String base)
Performs some sanitation for some of the most common URI syntax mistakes but returns a
directory URI rather than a file URI.
|
OutputStream |
getOutputStream(URI uri)
Returns the OutputStream for a given URI.
|
org.apache.xmlgraphics.io.Resource |
getResource(String stringUri)
Retrieve a resource given a URI in String form.
|
org.apache.xmlgraphics.io.Resource |
getResource(URI uri)
Retrieve a resource given a URI in String form.
|
URI |
resolveFromBase(URI uri)
Resolves a URI against the base URI.
|
public URI getBaseURI()
public org.apache.xmlgraphics.io.Resource getResource(String stringUri) throws IOException, URISyntaxException
stringUri
- the URI in String formIOException
- if an I/O error occurredURISyntaxException
- if the URI syntax was invalidpublic org.apache.xmlgraphics.io.Resource getResource(URI uri) throws IOException
uri
- the resource URIIOException
- if an I/O error occurredpublic OutputStream getOutputStream(URI uri) throws IOException
uri
- the URI for the inteded streamIOException
- if an I/O error occurrredpublic URI resolveFromBase(URI uri)
uri
- the URI that requires resolutionpublic static URI cleanURI(String uriStr) throws URISyntaxException
uriStr
- the URI in String formURISyntaxException
- if the given String was too erroneous to validatepublic static URI getBaseURI(String base) throws URISyntaxException
base
- the directory URI in String formURISyntaxException
- if the given String was too erroneous to validateCopyright © 2025 Apache Software Foundation. All rights reserved.