| 接口 | 说明 |
|---|---|
| DataReader |
Reads bytes from a data stream.
|
| DataSource |
Reads data from URI-identified resources.
|
| DataSource.Factory |
A factory for
DataSource instances. |
| HttpDataSource |
An HTTP
DataSource. |
| HttpDataSource.Factory |
A factory for
HttpDataSource instances. |
| TransferListener |
A listener of data transfer events.
|
| 类 | 说明 |
|---|---|
| BaseDataSource |
Base
DataSource implementation to keep a list of TransferListeners. |
| DataSourceInputStream |
Allows data corresponding to a given
DataSpec to be read from a DataSource and
consumed through an InputStream. |
| DataSpec |
Defines a region of data in a resource.
|
| DataSpec.Builder |
Builds
DataSpec instances. |
| DefaultHttpDataSource |
An
HttpDataSource that uses Android's HttpURLConnection. |
| DefaultHttpDataSource.Factory |
DataSource.Factory for DefaultHttpDataSource instances. |
| HttpDataSource.BaseFactory |
Base implementation of
HttpDataSource.Factory that sets default request properties. |
| HttpDataSource.RequestProperties |
Stores HTTP request properties (aka HTTP headers) and provides methods to modify the headers
in a thread safe way to avoid the potential of creating snapshots of an inconsistent or
unintended state.
|
| StatsDataSource |
DataSource wrapper which keeps track of bytes transferred, redirected uris, and response
headers. |
| 异常错误 | 说明 |
|---|---|
| DataSourceException |
Used to specify reason of a DataSource error.
|
| HttpDataSource.CleartextNotPermittedException |
Thrown when cleartext HTTP traffic is not permitted.
|
| HttpDataSource.HttpDataSourceException |
Thrown when an error is encountered when trying to read from a
HttpDataSource. |
| HttpDataSource.InvalidContentTypeException |
Thrown when the content type is invalid.
|
| HttpDataSource.InvalidResponseCodeException |
Thrown when an attempt to open a connection results in a response code not in the 2xx range.
|
| 注释类型 | 说明 |
|---|---|
| DataSpec.Flags |
The flags that apply to any request for data.
|
| DataSpec.HttpMethod |
HTTP methods supported by ExoPlayer
HttpDataSources. |
| HttpDataSource.HttpDataSourceException.Type |