ResolvingDataSource.Resolver
public interface ResolvingDataSource.Resolver
Resolves DataSpecs.
Summary
Public methods |
|
|---|---|
abstract DataSpec |
resolveDataSpec(DataSpec dataSpec)Resolves a |
default Uri |
resolveReportedUri(Uri uri)Resolves a URI reported by |
Public methods
resolveDataSpec
abstract DataSpec resolveDataSpec(DataSpec dataSpec)
Resolves a DataSpec before forwarding it to the wrapped DataSource. This method is allowed to block until the DataSpec has been resolved.
Note that this method is called for every new connection, so caching of results is recommended, especially if network operations are involved.
| Throws | |
|---|---|
java.io.IOException |
If an |
resolveReportedUri
default Uri resolveReportedUri(Uri uri)
Resolves a URI reported by 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.
| Returns | |
|---|---|
Uri |
The resolved URI used for event reporting and caching. |