FileDataSource.Factory


public final class FileDataSource.Factory implements DataSource.Factory


DataSource.Factory for FileDataSource instances.

Summary

Public constructors

Public methods

FileDataSource

Creates a DataSource instance.

FileDataSource.Factory

Sets a TransferListener for FileDataSource instances created by this factory.

Public constructors

Factory

public Factory()

Public methods

createDataSource

public FileDataSource createDataSource()

Creates a DataSource instance.

setListener

@CanIgnoreReturnValue
public FileDataSource.Factory setListener(@Nullable TransferListener listener)

Sets a TransferListener for FileDataSource instances created by this factory.

Parameters
@Nullable TransferListener listener

The TransferListener.

Returns
FileDataSource.Factory

This factory.