java.lang.Object
com.itextpdf.styledxmlparser.resolver.resource.UriResolver

public class UriResolver extends Object
Utilities class to resolve URIs.
  • Constructor Details

    • UriResolver

      public UriResolver (String baseUri)
      Creates a new UriResolver instance.
      Parameters:
      baseUri - the base URI
  • Method Details

    • getBaseUri

      public String getBaseUri()
      Gets the base URI.
      Returns:
      the base uri
    • resolveAgainstBaseUri

      public URL resolveAgainstBaseUri (String uriString) throws MalformedURLException
      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