IExternalResourceResolver

public interface IExternalResourceResolver

Callback interface used to resolve external resources during Html, Svg documents import.

Methods

MethodDescription
resolveUri(String baseUri, String relativeUri)Resolves the absolute URI from the base and relative URIs.
getEntity(String absoluteUri)Maps a URI to an object containing the actual resource.

resolveUri(String baseUri, String relativeUri)

public abstract String resolveUri(String baseUri, String relativeUri)

Resolves the absolute URI from the base and relative URIs.

Parameters:

ParameterTypeDescription
baseUrijava.lang.StringBase URI of linking objects
relativeUrijava.lang.StringRelative URI to the linked object.

Returns: java.lang.String - Absolute URI or null if the relative URI cannot be resolved.

getEntity(String absoluteUri)

public abstract InputStream getEntity(String absoluteUri)

Maps a URI to an object containing the actual resource.

Parameters:

ParameterTypeDescription
absoluteUrijava.lang.StringAbsolute URI to the object.

Returns: java.io.InputStream - A InputStream object or null if resource cannot be streamed.