Package com.bumptech.glide.load.model
package com.bumptech.glide.load.model
-
ClassDescriptionAssetUriLoader<Data>Loads a specific data type from an Asset Manager Uri.A factory to build a
DataFetcherfor a specific asset path.Factory for loadingAssetFileDescriptors from asset manager Uris.Factory for loadingInputStreams from asset manager Uris.ByteArrayLoader<Data>A base class to convert byte arrays to input streams so they can be decoded.Factory forByteArrayLoaderandByteBuffer.Converts between a byte array a desired model class.Factory forByteArrayLoaderandInputStream.WritesByteBufferstoFiles.LoadsByteBuffers using NIO forFile.Factory forByteBufferFileLoader.DataUrlLoader<Model,Data> A simple model loader for loading data from a Data URL String.Allows decoding a specific type of data from a Data URL String.DataUrlLoader.StreamFactory<Model>Factory for loadingInputStreams from data uris.DirectResourceLoader<DataT>Loads themed resource ids usingResources.openRawResource(int)orResources.openRawResourceFd(int)using the theme fromResourceDrawableDecoder.THEMEwhen it's available.FileLoader<Data>A simple model loader for loading data fromFiles.FileLoader.Factory<Data>Base factory for loading data fromfiles.Factory for loadingParcelFileDescriptors fromFiles.FileLoader.FileOpener<Data>Allows opening a specific type of data from aFile.Factory for loadingInputStreams fromFiles.A wrapper for strings representing http/https URLs responsible for ensuring URLs are properly escaped and avoiding unnecessary URL instantiations for loaders that require only string urls rather than URL objects.An interface for a wrapper for a set of headers to be included in a Glide request.An interface for lazily creating headers that allows expensive to calculate headers (oauth for example) to be generated in the background during the first fetch.A wrapper class for a set of headers to be included in a Glide request, allowing headers to be constructed lazily.Adds anLazyHeaderFactorythat will be used to construct a value for the given key* lazily on a background thread.Loads the file path forMediaStoreowneduris.An optional interface that models can implement to enhance control over Glide behaviors.ModelCache<A,B> A simple cache that can be used byModelLoaderandModelLoaderFactoryto cache some data for a given model, width and height.ModelLoader<Model,Data> A factory interface for translating an arbitrarily complex data model into a concrete data type that can be used by anDataFetcherto obtain the data for a resource represented by the model.ModelLoader.LoadData<Data>Contains a set ofKeysidentifying the source of the load, alternate cache keys pointing to equivalent data, and aDataFetcherthat can be used to fetch data not found in cache.ModelLoaderFactory<T,Y> An interface for creating aModelLoaderfor a given model type.Maintains an ordered put ofModelLoaders and the model and data types they handle in order from highest priority to lowest.Capable of building anModelLoaderthat wraps one or more otherModelLoaders for a given model and data class.ResourceLoader<Data>A model loader for handling Android resource files.LoadsAssetFileDescriptors from resource ids.Deprecated.This class is unused by Glide.Factory for loadingInputStreams from Android resource ids.Factory for loading resourceUris from Android resource ids.ResourceUriLoader<DataT>Converts Resource Uris to resource ids if the resource Uri points to a resource in this package.AnEncoderthat can write anInputStreamto disk.StringLoader<Data>A model loader for handling certain string models.LoadsAssetFileDescriptors from Strings.Factory for loadingParcelFileDescriptors from Strings.Factory for loadingInputStreams from Strings.UnitModelLoader<Model>A put of helper classes that performs no loading and instead always returns the given model as the data to decode.UnitModelLoader.Factory<Model>Factory for producingUnitModelLoaders.UriLoader<Data>A ModelLoader forUris that handles localUris directly and routes remoteUris to a wrappedModelLoaderthat handlesGlideUrls.LoadsAssetFileDescriptors fromUris.LoadsParcelFileDescriptors fromUris.Factory for obtaining aDataFetcherfor a data type for a particularUri.LoadsInputStreams fromUris.UrlUriLoader<Data>Handles http/https Uris by delegating to theModelLoaderforGlideUrls.LoadsInputStreamsfromUriswith http or https schemes.