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,InputStream>
- Enclosing class:
- DataUrlLoader<Model,
Data>
public static final class DataUrlLoader.StreamFactory<Model>
extends Object
implements ModelLoaderFactory<Model,InputStream>
Factory for loading
InputStreams from data uris.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild(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 Details
-
StreamFactory
public StreamFactory()
-
-
Method Details
-
build
Description copied from interface:ModelLoaderFactoryBuild a concrete ModelLoader for this model type.- Specified by:
buildin interfaceModelLoaderFactory<Model,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,InputStream>
-