public final class InputStreamRewinder extends Object implements DataRewinder<InputStream>
InputStreams that rewinds streams by wrapping them in a buffered
 stream.| Modifier and Type | Class and Description | 
|---|---|
| static class  | InputStreamRewinder.FactoryFactory for producing  InputStreamRewinders fromInputStreams. | 
| Modifier and Type | Method and Description | 
|---|---|
| void | cleanup()Called when this rewinder is no longer needed and can be cleaned up. | 
| InputStream | 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). | 
public InputStream rewindAndGet() throws IOException
DataRewinderrewindAndGet in interface DataRewinder<InputStream>IOExceptionpublic void cleanup()
DataRewinderThe underlying data may still be in use and should not be closed or invalidated.
cleanup in interface DataRewinder<InputStream>