Package 

Class DataFetchProducer

  • All Implemented Interfaces:
    com.facebook.imagepipeline.producers.Producer

    
    public class DataFetchProducer
    extends LocalFetchProducer
                        

    Producer for data URIs.

    Data URIs embed the data in the URI itself. They don't point to a file location; the URI is the data. Data can be encoded in either base-64 or escaped ASCII. See the spec for full details.

    Data URIs are intended for small pieces of data only, since the URI lives on the Java heap. For large data, use a another URI type.

    Charsets specified in the URI are ignored. Only UTF-8 encoding is currently supported.

    • Field Summary

      Fields 
      Modifier and Type Field Description
      public final static String PRODUCER_NAME
    • Constructor Summary

      Constructors 
      Constructor Description
      DataFetchProducer(PooledByteBufferFactory pooledByteBufferFactory)
    • Method Summary

      Modifier and Type Method Description
      • Methods inherited from class com.facebook.imagepipeline.producers.LocalFetchProducer

        produceResults
      • Methods inherited from class com.facebook.imagepipeline.producers.Producer

        produceResults
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • DataFetchProducer

        DataFetchProducer(PooledByteBufferFactory pooledByteBufferFactory)