-
public interface DataRewinder<T>Responsible for rewinding a stream like data types.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public interfaceDataRewinder.FactoryA factory interface for producing individual s.
-
Method Summary
Modifier and Type Method Description abstract TrewindAndGet()Rewinds the wrapped data back to the beginning and returns the re-wound data (or a wrapper forthe re-wound data). abstract voidcleanup()Called when this rewinder is no longer needed and can be cleaned up. -
-
Method Detail
-
rewindAndGet
@NonNull() abstract T rewindAndGet()
Rewinds the wrapped data back to the beginning and returns the re-wound data (or a wrapper forthe re-wound data).
-
cleanup
abstract 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.
-
-
-
-