Back to Fresco

LocalFetchProducer

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

3.6.024.3 KB
Original Source

Fresco

|

|

Packages | Classes

Interfaces

Classes

Annotations

Packages | Classes

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

public abstract class

LocalFetchProducer

extends Object
implements Producer<T>

| java.lang.Object | | ↳ | com.facebook.imagepipeline.producers.LocalFetchProducer |

| Known Direct Subclasses

DataFetchProducer, LocalAssetFetchProducer, LocalContentUriFetchProducer, LocalContentUriThumbnailFetchProducer, LocalFileFetchProducer, LocalResourceFetchProducer, QualifiedResourceFetchProducer

| DataFetchProducer | Producer for data URIs. | | LocalAssetFetchProducer | Executes a local fetch from an asset. | | LocalContentUriFetchProducer | Represents a local content Uri fetch producer. | | LocalContentUriThumbnailFetchProducer | Represents a local content Uri fetch producer. | | LocalFileFetchProducer | Represents a local file fetch producer. | | LocalResourceFetchProducer | Executes a local fetch from a resource. | | QualifiedResourceFetchProducer | The QualifiedResourceFetchProducer uses the ContentResolver to allow fetching resources that might not be part of the application's package. |

|

Class Overview

Represents a local fetch producer.

Summary

Protected Constructors
Public Methods
void
Protected Methods
EncodedImage
Creates a memory-backed encoded image from the stream.
abstract EncodedImage
Gets an encoded image from the local resource.
EncodedImage
abstract String

| [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. |

|

Protected Constructors

protected LocalFetchProducer(Executor executor, PooledByteBufferFactory pooledByteBufferFactory)

Public Methods

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

Protected Methods

protected EncodedImage getByteBufferBackedEncodedImage(InputStream inputStream, int length)

Creates a memory-backed encoded image from the stream. The stream is closed.

Throws

| IOException | |

protected abstract EncodedImage getEncodedImage(ImageRequest imageRequest)

Gets an encoded image from the local resource. It can be either backed by a FileInputStream or a PooledByteBuffer

Parameters

| imageRequest | request that includes the local resource that is being accessed |

Throws

| IOException | |

protected EncodedImage getEncodedImage(InputStream inputStream, int length)

Throws

| IOException | |

protected abstract String getProducerName()

Returns
  • name of the Producer

+Generated by Doclava. +