Package com.bumptech.glide.load.model
Class DataUrlLoader.StreamFactory<Model>
- java.lang.Object
-
- com.bumptech.glide.load.model.DataUrlLoader.StreamFactory<Model>
-
- Type Parameters:
Model- The type of Model we can obtain data for, e.g. String.
- All Implemented Interfaces:
ModelLoaderFactory<Model,java.io.InputStream>
- Enclosing class:
- DataUrlLoader<Model,Data>
public static final class DataUrlLoader.StreamFactory<Model> extends java.lang.Object implements ModelLoaderFactory<Model,java.io.InputStream>
Factory for loadingInputStreams from data uris.
-
-
Constructor Summary
Constructors Constructor Description StreamFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ModelLoader<Model,java.io.InputStream>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.
-
-
-
Method Detail
-
build
@NonNull public ModelLoader<Model,java.io.InputStream> build(@NonNull MultiModelLoaderFactory multiFactory)
Description copied from interface:ModelLoaderFactoryBuild a concrete ModelLoader for this model type.- Specified by:
buildin interfaceModelLoaderFactory<Model,java.io.InputStream>- 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 void teardown()
Description copied from interface:ModelLoaderFactoryA lifecycle method that will be called when this factory is about to replaced.- Specified by:
teardownin interfaceModelLoaderFactory<Model,java.io.InputStream>
-
-