Package org.vast.util

Class URIResolver

java.lang.Object
org.vast.util.URIResolver

public class URIResolver extends Object

URI Resolver uses local mapping file or DNS servers to resolve a URI to a URL, or simply uses the URL class if the URI is already a URL.

Since:
Aug 19, 2005
  • Constructor Details

    • URIResolver

      public URIResolver(URI uri)
    • URIResolver

      public URIResolver(URI uri, URI baseUri)
  • Method Details

    • openStream

      public InputStream openStream() throws IOException
      Open the stream pointed by this uri
      Returns:
      InputStream
      Throws:
      IOException
    • resolveToUrl

      public URL resolveToUrl() throws IOException
      Resolves the URI to a URL using the appropriate resolution method (depending on URI scheme)
      Returns:
      the resolved URL
      Throws:
      IOException
    • getResolvedUri

      public URI getResolvedUri()