Package com.bumptech.glide.load.data
Class InputStreamRewinder
java.lang.Object
com.bumptech.glide.load.data.InputStreamRewinder
- All Implemented Interfaces:
DataRewinder<InputStream>
Implementation for
InputStreams that rewinds streams by wrapping them in a buffered
stream.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classFactory for producingInputStreamRewinders fromInputStreams. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcleanup()Called when this rewinder is no longer needed and can be cleaned up.voidRewinds the wrapped data back to the beginning and returns the re-wound data (or a wrapper for the re-wound data).
-
Constructor Details
-
InputStreamRewinder
-
-
Method Details
-
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<InputStream>- 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<InputStream>
-
fixMarkLimits
public void fixMarkLimits()
-