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<java.io.File,Data>
- Direct Known Subclasses:
FileLoader.FileDescriptorFactory,FileLoader.StreamFactory
- Enclosing class:
- FileLoader<Data>
public static class FileLoader.Factory<Data> extends java.lang.Object implements ModelLoaderFactory<java.io.File,Data>
Base factory for loading data fromfiles.
-
-
Constructor Summary
Constructors Constructor Description Factory(FileLoader.FileOpener<Data> opener)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ModelLoader<java.io.File,Data>build(MultiModelLoaderFactory multiFactory)Build a concrete ModelLoader for this model type.voidteardown()A lifecycle method that will be called when this factory is about to replaced.
-
-
-
Constructor Detail
-
Factory
public Factory(FileLoader.FileOpener<Data> opener)
-
-
Method Detail
-
build
@NonNull public final ModelLoader<java.io.File,Data> build(@NonNull MultiModelLoaderFactory multiFactory)
Description copied from interface:ModelLoaderFactoryBuild a concrete ModelLoader for this model type.- Specified by:
buildin interfaceModelLoaderFactory<java.io.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<java.io.File,Data>
-
-