Package com.google.android.exoplayer2.upstream
-
Interface Summary Interface Description Allocator A source of allocations.BandwidthMeter Provides estimates of the currently available bandwidth.BandwidthMeter.EventListener A listener ofBandwidthMeter
events.DataReader Reads bytes from a data stream.DataSink A component to which streams of data can be written.DataSink.Factory A factory forDataSink
instances.DataSource Reads data from URI-identified resources.DataSource.Factory A factory forDataSource
instances.HttpDataSource An HTTPDataSource
.HttpDataSource.Factory A factory forHttpDataSource
instances.Loader.Callback<T extends Loader.Loadable> A callback to be notified ofLoader
events.Loader.Loadable An object that can be loaded using aLoader
.Loader.ReleaseCallback A callback to be notified when aLoader
has finished being released.LoaderErrorThrower Conditionally throws errors affecting aLoader
.LoadErrorHandlingPolicy A policy that defines how load errors are handled.ParsingLoadable.Parser<T> Parses an object from loaded data.ResolvingDataSource.Resolver ResolvesDataSpecs
.TimeToFirstByteEstimator Provides an estimate of the time to first byte of a transfer.TransferListener A listener of data transfer events. -
Class Summary Class Description Allocation An allocation within a byte array.AssetDataSource ADataSource
for reading from a local asset.BandwidthMeter.EventListener.EventDispatcher Event dispatcher which allows listener registration.BaseDataSource BaseDataSource
implementation to keep a list ofTransferListener
s.ByteArrayDataSink ADataSink
for writing to a byte array.ByteArrayDataSource ADataSource
for reading from a byte array.CachedRegionTracker Utility class for efficiently tracking regions of data that are stored in aCache
for a given cache key.ContentDataSource ADataSource
for reading from a content URI.DataSchemeDataSource ADataSource
for reading data URLs, as defined by RFC 2397.DataSourceInputStream Allows data corresponding to a givenDataSpec
to be read from aDataSource
and consumed through anInputStream
.DataSourceUtil Utility methods forDataSource
.DataSpec Defines a region of data in a resource.DataSpec.Builder BuildsDataSpec
instances.DefaultAllocator Default implementation ofAllocator
.DefaultBandwidthMeter Estimates bandwidth by listening to data transfers.DefaultBandwidthMeter.Builder Builder for a bandwidth meter.DefaultDataSource ADataSource
that supports multiple URI schemes.DefaultDataSource.Factory DataSource.Factory
forDefaultDataSource
instances.DefaultDataSourceFactory Deprecated. UseDefaultDataSource.Factory
instead.DefaultHttpDataSource AnHttpDataSource
that uses Android'sHttpURLConnection
.DefaultHttpDataSource.Factory DataSource.Factory
forDefaultHttpDataSource
instances.DefaultLoadErrorHandlingPolicy Default implementation ofLoadErrorHandlingPolicy
.DummyDataSource A DataSource which provides no data.FileDataSource ADataSource
for reading local files.FileDataSource.Factory DataSource.Factory
forFileDataSource
instances.HttpDataSource.BaseFactory Base implementation ofHttpDataSource.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.HttpUtil Utility methods for HTTP.Loader Manages the background loading ofLoader.Loadable
s.Loader.LoadErrorAction Action that can be taken in response toLoader.Callback.onLoadError(Loadable, long, long, IOException, int)
.LoaderErrorThrower.Dummy ALoaderErrorThrower
that never throws.LoadErrorHandlingPolicy.FallbackOptions Holds information about the available fallback options.LoadErrorHandlingPolicy.FallbackSelection A selected fallback option.LoadErrorHandlingPolicy.LoadErrorInfo Holds information about a load task error.ParsingLoadable<T> ALoader.Loadable
for objects that can be parsed from binary data using aParsingLoadable.Parser
.PriorityDataSource ADataSource
that can be used as part of a task registered with aPriorityTaskManager
.PriorityDataSource.Factory DataSource.Factory
forPriorityDataSource
instances.PriorityDataSourceFactory Deprecated. RawResourceDataSource ADataSource
for reading a raw resource inside the APK.ResolvingDataSource DataSource
wrapper allowing just-in-time resolution ofDataSpecs
.ResolvingDataSource.Factory DataSource.Factory
forResolvingDataSource
instances.SlidingPercentile Calculate any percentile over a sliding window of weighted values.StatsDataSource DataSource
wrapper which keeps track of bytes transferred, redirected uris, and response headers.TeeDataSource Tees data into aDataSink
as the data is read.UdpDataSource A UDPDataSource
. -
Exception Summary Exception Description AssetDataSource.AssetDataSourceException Thrown when anIOException
is encountered reading a local asset.ContentDataSource.ContentDataSourceException Thrown when anIOException
is encountered reading from a content URI.DataSourceException Used to specify reason of a DataSource error.FileDataSource.FileDataSourceException Thrown when aFileDataSource
encounters an error reading a file.HttpDataSource.CleartextNotPermittedException Thrown when cleartext HTTP traffic is not permitted.HttpDataSource.HttpDataSourceException Thrown when an error is encountered when trying to read from aHttpDataSource
.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.Loader.UnexpectedLoaderException Thrown when an unexpected exception or error is encountered during loading.RawResourceDataSource.RawResourceDataSourceException Thrown when anIOException
is encountered reading from a raw resource.UdpDataSource.UdpDataSourceException Thrown when an error is encountered when trying to read from aUdpDataSource
. -
Annotation Types Summary Annotation Type Description DataSpec.Flags The flags that apply to any request for data.DataSpec.HttpMethod HTTP methods supported by ExoPlayerHttpDataSource
s.HttpDataSource.HttpDataSourceException.Type The type of operation that produced the error.LoadErrorHandlingPolicy.FallbackType Fallback type.