public class ExternalResourceResolver extends java.lang.Object implements IExternalResourceResolver
Callback class used to resolve external resources during Html, Svg documents import.
Constructor and Description |
---|
ExternalResourceResolver() |
Modifier and Type | Method and Description |
---|---|
java.io.InputStream |
getEntity(java.lang.String absoluteUri)
Maps a URI to an object containing the actual resource.
|
java.lang.String |
resolveUri(java.lang.String baseUri,
java.lang.String relativeUri)
Resolves the absolute URI from the base and relative URIs.
|
public java.lang.String resolveUri(java.lang.String baseUri, java.lang.String relativeUri)
Resolves the absolute URI from the base and relative URIs.
resolveUri
in interface IExternalResourceResolver
baseUri
- Base URI of linking objectsrelativeUri
- Relative URI to the linked object.public java.io.InputStream getEntity(java.lang.String absoluteUri)
Maps a URI to an object containing the actual resource.
getEntity
in interface IExternalResourceResolver
absoluteUri
- Absolute URI to the object.InputStream
object or null if resource cannot be streamed.