Package com.bumptech.glide.load.model
Class FileLoader.Factory<Data>
java.lang.Object
com.bumptech.glide.load.model.FileLoader.Factory<Data>
- Type Parameters:
Data- The type of data that will be loaded for a givenFile.
- All Implemented Interfaces:
ModelLoaderFactory<File,Data>
- Direct Known Subclasses:
FileLoader.FileDescriptorFactory,FileLoader.StreamFactory
- Enclosing class:
- FileLoader<Data>
public static class FileLoader.Factory<Data>
extends Object
implements ModelLoaderFactory<File,Data>
Base factory for loading data from
files.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal ModelLoader<File,Data> build(MultiModelLoaderFactory multiFactory) Build a concrete ModelLoader for this model type.final voidteardown()A lifecycle method that will be called when this factory is about to replaced.
-
Constructor Details
-
Factory
-
-
Method Details
-
build
Description copied from interface:ModelLoaderFactoryBuild a concrete ModelLoader for this model type.- Specified by:
buildin interfaceModelLoaderFactory<File,Data> - Parameters:
multiFactory- A map of classes to factories that can be used to construct additionalModelLoaders that this factory'sModelLoadermay depend on- Returns:
- A new
ModelLoader
-
teardown
public final void teardown()Description copied from interface:ModelLoaderFactoryA lifecycle method that will be called when this factory is about to replaced.- Specified by:
teardownin interfaceModelLoaderFactory<File,Data>
-