Package com.bumptech.glide.load.model
Class ByteArrayLoader.ByteBufferFactory
java.lang.Object
com.bumptech.glide.load.model.ByteArrayLoader.ByteBufferFactory
- All Implemented Interfaces:
ModelLoaderFactory<byte[],ByteBuffer>
- Enclosing class:
- ByteArrayLoader<Data>
public static class ByteArrayLoader.ByteBufferFactory
extends Object
implements ModelLoaderFactory<byte[],ByteBuffer>
Factory for
ByteArrayLoader and ByteBuffer.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionModelLoader<byte[],ByteBuffer> 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 Details
-
ByteBufferFactory
public ByteBufferFactory()
-
-
Method Details
-
build
Description copied from interface:ModelLoaderFactoryBuild a concrete ModelLoader for this model type.- Specified by:
buildin interfaceModelLoaderFactory<byte[],ByteBuffer> - 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<byte[],ByteBuffer>
-