Class UriResolver
java.lang.Object
com.itextpdf.styledxmlparser.resolver.resource.UriResolver
Utilities class to resolve URIs.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGets the base URI.boolean
Check if baseURI is localresolveAgainstBaseUri
(String uriString) Resolve a given URI against the base URI.
-
Constructor Details
-
UriResolver
Creates a newUriResolver
instance.- Parameters:
-
baseUri
- the base URI
-
-
Method Details
-
getBaseUri
Gets the base URI.- Returns:
- the base uri
-
resolveAgainstBaseUri
Resolve a given URI against the base URI.- Parameters:
-
uriString
- the given URI - Returns:
- the resolved URI
- Throws:
-
MalformedURLException
- the malformed URL exception
-
isLocalBaseUri
public boolean isLocalBaseUri()Check if baseURI is local- Returns:
- true if baseURI is local, otherwise false
-