Class URIUtils

java.lang.Object
org.opengis.cite.ogcapiprocesses10.util.URIUtils

public class URIUtils extends Object
Provides a collection of utility methods for manipulating or resolving URI references.
Author:
bpr
  • Constructor Details

    • URIUtils

      public URIUtils()
  • Method Details

    • dereferenceURI

      public static File dereferenceURI(URI uriRef) throws IOException
      Dereferences the given URI and stores the resulting resource representation in a local file. The file will be located in the default temporary file directory.
      Parameters:
      uriRef - An absolute URI specifying the location of some resource.
      Returns:
      A File containing the content of the resource; it may be empty if resolution failed for any reason.
      Throws:
      IOException - If an IO error occurred.