T
- The stream like data type that can be rewound.public interface DataRewinder<T>
限定符和类型 | 接口和说明 |
---|---|
static interface |
DataRewinder.Factory<T>
A factory interface for producing individual
DataRewinder s. |
限定符和类型 | 方法和说明 |
---|---|
void |
cleanup()
Called when this rewinder is no longer needed and can be cleaned up.
|
T |
rewindAndGet()
Rewinds the wrapped data back to the position it was at when this object was instantiated and
returns the re-wound data (or a wrapper for the re-wound data).
|
@NonNull T rewindAndGet() throws IOException
IOException
void cleanup()
The underlying data may still be in use and should not be closed or invalidated.