com.bumptech.glide.load.model.stream
Class StreamByteArrayLoader.Factory

java.lang.Object
  extended by com.bumptech.glide.load.model.stream.StreamByteArrayLoader.Factory
All Implemented Interfaces:
ModelLoaderFactory<byte[],InputStream>
Enclosing class:
StreamByteArrayLoader

public static class StreamByteArrayLoader.Factory
extends Object
implements ModelLoaderFactory<byte[],InputStream>

Factory for StreamByteArrayLoader.


Constructor Summary
StreamByteArrayLoader.Factory()
           
 
Method Summary
 ModelLoader<byte[],InputStream> build(Context context, GenericLoaderFactory factories)
          Build a concrete ModelLoader for this model type.
 void teardown()
          A lifecycle method that will be called when this factory is about to replaced.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StreamByteArrayLoader.Factory

public StreamByteArrayLoader.Factory()
Method Detail

build

public ModelLoader<byte[],InputStream> build(Context context,
                                             GenericLoaderFactory factories)
Description copied from interface: ModelLoaderFactory
Build a concrete ModelLoader for this model type.

Specified by:
build in interface ModelLoaderFactory<byte[],InputStream>
Parameters:
context - A context that cannot be retained by the factory but can be retained by the ModelLoader
factories - A map of classes to factories that can be used to construct additional ModelLoaders that this factory's ModelLoader may depend on
Returns:
A new ModelLoader

teardown

public void teardown()
Description copied from interface: ModelLoaderFactory
A lifecycle method that will be called when this factory is about to replaced.

Specified by:
teardown in interface ModelLoaderFactory<byte[],InputStream>