Package com.bumptech.glide.load.data
Interface DataRewinder<T>
- Type Parameters:
T- The stream like data type that can be rewound.
- All Known Implementing Classes:
ByteBufferRewinder,InputStreamRewinder,ParcelFileDescriptorRewinder
public interface DataRewinder<T>
Responsible for rewinding a stream like data types.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfaceA factory interface for producing individualDataRewinders. -
Method Summary
Modifier and TypeMethodDescriptionvoidcleanup()Called when this rewinder is no longer needed and can be cleaned up.Rewinds the wrapped data back to the beginning and returns the re-wound data (or a wrapper for the re-wound data).
-
Method Details
-
rewindAndGet
Rewinds the wrapped data back to the beginning and returns the re-wound data (or a wrapper for the re-wound data).- Returns:
- An object pointing to the wrapped data.
- Throws:
IOException
-
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.
-