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 ofBandwidthMeterevents.DataReader Reads bytes from a data stream.DataSink A component to which streams of data can be written.DataSink.Factory A factory forDataSinkinstances.DataSource Reads data from URI-identified resources.DataSource.Factory A factory forDataSourceinstances.HttpDataSource An HTTPDataSource.HttpDataSource.Factory A factory forHttpDataSourceinstances.Loader.Callback<T extends Loader.Loadable> A callback to be notified ofLoaderevents.Loader.Loadable An object that can be loaded using aLoader.Loader.ReleaseCallback A callback to be notified when aLoaderhas 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 ADataSourcefor reading from a local asset.BandwidthMeter.EventListener.EventDispatcher Event dispatcher which allows listener registration.BaseDataSource BaseDataSourceimplementation to keep a list ofTransferListeners.ByteArrayDataSink ADataSinkfor writing to a byte array.ByteArrayDataSource ADataSourcefor reading from a byte array.CachedRegionTracker Utility class for efficiently tracking regions of data that are stored in aCachefor a given cache key.ContentDataSource ADataSourcefor reading from a content URI.DataSchemeDataSource ADataSourcefor reading data URLs, as defined by RFC 2397.DataSourceInputStream Allows data corresponding to a givenDataSpecto be read from aDataSourceand consumed through anInputStream.DataSourceUtil Utility methods forDataSource.DataSpec Defines a region of data in a resource.DataSpec.Builder BuildsDataSpecinstances.DefaultAllocator Default implementation ofAllocator.DefaultBandwidthMeter Estimates bandwidth by listening to data transfers.DefaultBandwidthMeter.Builder Builder for a bandwidth meter.DefaultDataSource ADataSourcethat supports multiple URI schemes.DefaultDataSource.Factory DataSource.FactoryforDefaultDataSourceinstances.DefaultDataSourceFactory Deprecated. UseDefaultDataSource.Factoryinstead.DefaultHttpDataSource AnHttpDataSourcethat uses Android'sHttpURLConnection.DefaultHttpDataSource.Factory DataSource.FactoryforDefaultHttpDataSourceinstances.DefaultLoadErrorHandlingPolicy Default implementation ofLoadErrorHandlingPolicy.DummyDataSource A DataSource which provides no data.FileDataSource ADataSourcefor reading local files.FileDataSource.Factory DataSource.FactoryforFileDataSourceinstances.HttpDataSource.BaseFactory Base implementation ofHttpDataSource.Factorythat 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.Loadables.Loader.LoadErrorAction Action that can be taken in response toLoader.Callback.onLoadError(Loadable, long, long, IOException, int).LoaderErrorThrower.Dummy ALoaderErrorThrowerthat 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.Loadablefor objects that can be parsed from binary data using aParsingLoadable.Parser.PriorityDataSource ADataSourcethat can be used as part of a task registered with aPriorityTaskManager.PriorityDataSource.Factory DataSource.FactoryforPriorityDataSourceinstances.PriorityDataSourceFactory Deprecated. RawResourceDataSource ADataSourcefor reading a raw resource inside the APK.ResolvingDataSource DataSourcewrapper allowing just-in-time resolution ofDataSpecs.ResolvingDataSource.Factory DataSource.FactoryforResolvingDataSourceinstances.SlidingPercentile Calculate any percentile over a sliding window of weighted values.StatsDataSource DataSourcewrapper which keeps track of bytes transferred, redirected uris, and response headers.TeeDataSource Tees data into aDataSinkas the data is read.UdpDataSource A UDPDataSource. -
Exception Summary Exception Description AssetDataSource.AssetDataSourceException Thrown when anIOExceptionis encountered reading a local asset.ContentDataSource.ContentDataSourceException Thrown when anIOExceptionis encountered reading from a content URI.DataSourceException Used to specify reason of a DataSource error.FileDataSource.FileDataSourceException Thrown when aFileDataSourceencounters 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 anIOExceptionis 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 ExoPlayerHttpDataSources.HttpDataSource.HttpDataSourceException.Type The type of operation that produced the error.LoadErrorHandlingPolicy.FallbackType Fallback type.