docs/doc/reference/com/google/android/exoplayer2/upstream/FileDataSource.Factory.html
Package com.google.android.exoplayer2.upstream
All Implemented Interfaces:DataSource.FactoryEnclosing class:FileDataSource
public static final classFileDataSource.Factoryextends[Object](https://developer.android.com/reference/java/lang/Object.html "class or interface in java.lang")implements[DataSource.Factory](DataSource.Factory.html "interface in com.google.android.exoplayer2.upstream")
DataSource.Factory for FileDataSource instances.
Constructors | Constructor | Description |
| --- | --- |
| Factory() | |
All Methods Instance Methods Concrete Methods | Modifier and Type | Method | Description |
| --- | --- | --- |
| FileDataSource | createDataSource() |
Creates a DataSource instance.
|
| FileDataSource.Factory | setListener(TransferListener listener) |
Sets a TransferListener for FileDataSource instances created by this factory.
|
-
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
public Factory()
-
@CanIgnoreReturnValue
public[FileDataSource.Factory](FileDataSource.Factory.html "class in com.google.android.exoplayer2.upstream")setListener(@Nullable[TransferListener](TransferListener.html "interface in com.google.android.exoplayer2.upstream")listener)
Sets a TransferListener for FileDataSource instances created by this factory.
Parameters:listener - The TransferListener.Returns:This factory.
-
public[FileDataSource](FileDataSource.html "class in com.google.android.exoplayer2.upstream")createDataSource()
Description copied from interface: DataSource.Factory
Creates a DataSource instance.
Specified by:createDataSource in interface DataSource.Factory