Interface UriSource
-
- All Superinterfaces:
Serializable,TestSource
- All Known Subinterfaces:
FileSystemSource
- All Known Implementing Classes:
DirectorySource,FileSource
@API(status=STABLE, since="1.0") public interface UriSource extends TestSource
ATestSourcethat can be represented as aURI.- Since:
- 1.0
- See Also:
UriSelector
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Modifier and Type Method Description static UriSourcefrom(URI uri)Create a newUriSourceusing the suppliedURI.URIgetUri()Get theURIthat represents this source.
-
-
-
Method Detail
-
from
static UriSource from(URI uri)
Create a newUriSourceusing the suppliedURI.This implementation first attempts to resolve the supplied
URIto a path-basedUriSourcein the local filesystem. If that fails for any reason, an instance of the defaultUriSourceimplementation storing the suppliedURIas-is will be returned.- Parameters:
uri- the URI to use as the source; nevernull- Returns:
- an appropriate
UriSourcefor the suppliedURI - Since:
- 1.3
- See Also:
FileSource,DirectorySource
-
-