Package com.bumptech.glide.load.data
Class ParcelFileDescriptorRewinder
java.lang.Object
com.bumptech.glide.load.data.ParcelFileDescriptorRewinder
- All Implemented Interfaces:
DataRewinder<ParcelFileDescriptor>
public final class ParcelFileDescriptorRewinder
extends Object
implements DataRewinder<ParcelFileDescriptor>
Implementation for
ParcelFileDescriptors that rewinds file descriptors by seeking to 0.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classFactory for producingParcelFileDescriptorRewinders fromParcelFileDescriptors. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcleanup()Called when this rewinder is no longer needed and can be cleaned up.static booleanRewinds the wrapped data back to the beginning and returns the re-wound data (or a wrapper for the re-wound data).
-
Constructor Details
-
ParcelFileDescriptorRewinder
-
-
Method Details
-
isSupported
public static boolean isSupported() -
rewindAndGet
Description copied from interface:DataRewinderRewinds the wrapped data back to the beginning and returns the re-wound data (or a wrapper for the re-wound data).- Specified by:
rewindAndGetin interfaceDataRewinder<ParcelFileDescriptor>- Returns:
- An object pointing to the wrapped data.
- Throws:
IOException
-
cleanup
public void cleanup()Description copied from interface:DataRewinderCalled when this rewinder is no longer needed and can be cleaned up.The underlying data may still be in use and should not be closed or invalidated.
- Specified by:
cleanupin interfaceDataRewinder<ParcelFileDescriptor>
-