Back to Fresco

PartialDiskCacheProducer

docs/javadoc/reference/com/facebook/imagepipeline/producers/PartialDiskCacheProducer.html

3.6.022.3 KB
Original Source

Fresco

|

|

Packages | Classes

Interfaces

Classes

Annotations

Packages | Classes

Summary: Constants | Ctors | Methods | Inherited Methods | [Expand All]

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
String
String
Public Constructors
Public Methods
void

| [Expand] Inherited Methods | | --- | | From class java.lang.Object

| Object | clone() | | boolean | equals(Object arg0) | | void | finalize() | | final Class<?> | getClass() | | int | hashCode() | | final void | notify() | | final void | notifyAll() | | String | toString() | | final void | wait(long arg0, int arg1) | | final void | wait(long arg0) | | final void | wait() |

| | From interface com.facebook.imagepipeline.producers.Producer

| abstract void | produceResults(Consumer<T> consumer, ProducerContext context) Start producing results for given context. |

|

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)

+Generated by Doclava. +