public class

PartialDiskCacheProducer

extends Object
implements Producer<T>
java.lang.Object
   ↳ com.facebook.imagepipeline.producers.PartialDiskCacheProducer

Class Overview

Partial disk cache producer.

This producer looks in the disk cache to see if it holds part of the requested image. If the image is found, then it is passed to the consumer as a non-final result, but an adjusted request is still sent further along to request the remainder of the image.

When the final result comes from the input producer, the two parts are stitched back together and returned as a whole.

Summary

Constants
String ENCODED_IMAGE_SIZE
String EXTRA_CACHED_VALUE_FOUND
String PRODUCER_NAME
Public Constructors
PartialDiskCacheProducer(BufferedDiskCache defaultBufferedDiskCache, CacheKeyFactory cacheKeyFactory, PooledByteBufferFactory pooledByteBufferFactory, ByteArrayPool byteArrayPool, Producer<EncodedImage> inputProducer)
Public Methods
void produceResults(Consumer<EncodedImage> consumer, ProducerContext producerContext)
[Expand]
Inherited Methods
From class java.lang.Object
From interface com.facebook.imagepipeline.producers.Producer

Constants

public static final String ENCODED_IMAGE_SIZE

Constant Value: "encodedImageSize"

public static final String EXTRA_CACHED_VALUE_FOUND

Constant Value: "cached_value_found"

public static final String PRODUCER_NAME

Constant Value: "PartialDiskCacheProducer"

Public Constructors

public PartialDiskCacheProducer (BufferedDiskCache defaultBufferedDiskCache, CacheKeyFactory cacheKeyFactory, PooledByteBufferFactory pooledByteBufferFactory, ByteArrayPool byteArrayPool, Producer<EncodedImage> inputProducer)

Public Methods

public void produceResults (Consumer<EncodedImage> consumer, ProducerContext producerContext)