Interface ResolvingDataSource.Resolver
- 
- Enclosing class:
- ResolvingDataSource
 
 public static interface ResolvingDataSource.ResolverResolvesDataSpecs.
- 
- 
Method SummaryAll Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description DataSpecresolveDataSpec(DataSpec dataSpec)Resolves aDataSpecbefore forwarding it to the wrappedDataSource.default UriresolveReportedUri(Uri uri)Resolves a URI reported byDataSource.getUri()for event reporting and caching purposes.
 
- 
- 
- 
Method Detail- 
resolveDataSpecDataSpec resolveDataSpec(DataSpec dataSpec) throws IOException Resolves aDataSpecbefore forwarding it to the wrappedDataSource. This method is allowed to block until theDataSpechas been resolved.Note that this method is called for every new connection, so caching of results is recommended, especially if network operations are involved. - Parameters:
- dataSpec- The original- DataSpec.
- Returns:
- The resolved DataSpec.
- Throws:
- IOException- If an- IOExceptionoccurred while resolving the- DataSpec.
 
 - 
resolveReportedUridefault Uri resolveReportedUri(Uri uri) Resolves a URI reported byDataSource.getUri()for event reporting and caching purposes.Implementations do not need to overwrite this method unless they want to change the reported URI. This method is not allowed to block. - Parameters:
- uri- The URI as reported by- DataSource.getUri().
- Returns:
- The resolved URI used for event reporting and caching.
 
 
- 
 
-