T
- The stream like data type that can be rewound.public interface DataRewinder<T>
Modifier and Type | Interface and Description |
---|---|
static interface |
DataRewinder.Factory<T>
A factory interface for producing individual
DataRewinder s. |
Modifier and Type | Method and Description |
---|---|
void |
cleanup()
Called when this rewinder is no longer needed and can be cleaned up.
|
T |
rewindAndGet()
Rewinds the wrapped data back to the beginning and returns the re-wound data (or a wrapper for
the re-wound data).
|
@NonNull T rewindAndGet() throws java.io.IOException
java.io.IOException
void cleanup()
The underlying data may still be in use and should not be closed or invalidated.