Class FileDataSource.Factory
- java.lang.Object
-
- com.google.android.exoplayer2.upstream.FileDataSource.Factory
-
- All Implemented Interfaces:
DataSource.Factory
- Enclosing class:
- FileDataSource
public static final class FileDataSource.Factory extends Object implements DataSource.Factory
DataSource.Factory
forFileDataSource
instances.
-
-
Constructor Summary
Constructors Constructor Description Factory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description FileDataSource
createDataSource()
Creates aDataSource
instance.FileDataSource.Factory
setListener(TransferListener listener)
Sets aTransferListener
forFileDataSource
instances created by this factory.
-
-
-
Method Detail
-
setListener
@CanIgnoreReturnValue public FileDataSource.Factory setListener(@Nullable TransferListener listener)
Sets aTransferListener
forFileDataSource
instances created by this factory.- Parameters:
listener
- TheTransferListener
.- Returns:
- This factory.
-
createDataSource
public FileDataSource createDataSource()
Description copied from interface:DataSource.Factory
Creates aDataSource
instance.- Specified by:
createDataSource
in interfaceDataSource.Factory
-
-