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