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
  DataRewinders. | 
| 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 position it was at when this object was instantiated and
 returns the re-wound data (or a wrapper for the re-wound data). | 
T rewindAndGet() throws IOException
IOExceptionvoid cleanup()
The underlying data may still be in use and should not be closed or invalidated.