Interface UriSource

    • Method Detail

      • getUri

        URI getUri()
        Get the URI that represents this source.
        Returns:
        the source URI; never null
      • from

        static UriSource from​(URI uri)
        Create a new UriSource using the supplied URI.

        This implementation first attempts to resolve the supplied URI to a path-based UriSource in the local filesystem. If that fails for any reason, an instance of the default UriSource implementation storing the supplied URI as-is will be returned.

        Parameters:
        uri - the URI to use as the source; never null
        Returns:
        an appropriate UriSource for the supplied URI
        Since:
        1.3
        See Also:
        FileSource, DirectorySource