All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.bumptech.glide.provider.DataLoadProvider Maven / Gradle / Ivy

package com.bumptech.glide.provider;

import com.bumptech.glide.load.Encoder;
import com.bumptech.glide.load.ResourceDecoder;
import com.bumptech.glide.load.ResourceEncoder;

import java.io.File;

/**
 * A load provider that provides the necessary encoders and decoders to decode a specific type of resource from a
 * specific type of data.
 *
 * @param  The type of data the resource will be decoded from.
 * @param  The type of resource that will be decoded.
 */
public interface DataLoadProvider {

    /**
     * Returns the {@link com.bumptech.glide.load.ResourceDecoder} to use to decode the resource from the disk cache.
     */
    ResourceDecoder getCacheDecoder();

    /**
     * Returns the {@link com.bumptech.glide.load.ResourceDecoder} to use to decode the resource from the original data.
     */
    ResourceDecoder getSourceDecoder();

    /**
     * Returns the {@link com.bumptech.glide.load.Encoder} to use to write the original data to the disk cache.
     */
    Encoder getSourceEncoder();

    /**
     * Returns the {@link com.bumptech.glide.load.ResourceEncoder} to use to write the decoded and transformed resource
     * to the disk cache.
     */
    ResourceEncoder getEncoder();
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy