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 Classes Modifier and Type Interface Description static interfaceDataRewinder.Factory<T>A factory interface for producing individualDataRewinders.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidcleanup()Called when this rewinder is no longer needed and can be cleaned up.TrewindAndGet()Rewinds the wrapped data back to the beginning and returns the re-wound data (or a wrapper for the re-wound data).
-
-
-
Method Detail
-
rewindAndGet
@NonNull T rewindAndGet() throws java.io.IOException
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:
java.io.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.
-
-