-
- All Implemented Interfaces:
-
com.mobwith.imgmodule.load.data.DataRewinder
public final class ParcelFileDescriptorRewinder implements DataRewinder<ParcelFileDescriptor>
Implementation for ParcelFileDescriptors that rewinds file descriptors by seeking to 0.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classParcelFileDescriptorRewinder.FactoryFactory for producing ParcelFileDescriptorRewinders from ParcelFileDescriptors.
-
Constructor Summary
Constructors Constructor Description ParcelFileDescriptorRewinder(ParcelFileDescriptor parcelFileDescriptor)
-
Method Summary
Modifier and Type Method Description static booleanisSupported()ParcelFileDescriptorrewindAndGet()Rewinds the wrapped data back to the beginning and returns the re-wound data (or a wrapper forthe re-wound data). voidcleanup()Called when this rewinder is no longer needed and can be cleaned up. -
-
Constructor Detail
-
ParcelFileDescriptorRewinder
ParcelFileDescriptorRewinder(ParcelFileDescriptor parcelFileDescriptor)
-
-
Method Detail
-
isSupported
static boolean isSupported()
-
rewindAndGet
@NonNull()@RequiresApi(value = Build.VERSION_CODES.LOLLIPOP) ParcelFileDescriptor rewindAndGet()
Rewinds the wrapped data back to the beginning and returns the re-wound data (or a wrapper forthe re-wound data).
-
cleanup
void cleanup()
Called 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.
-
-
-
-